Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs
diff options
context:
space:
mode:
authorDick Porter <dick@acm.org>2004-08-13 17:39:42 +0400
committerDick Porter <dick@acm.org>2004-08-13 17:39:42 +0400
commit0bbb93f17f89283094caf1725692b6f91f2f767c (patch)
tree1396cb9a7b54c70ffcca6087d8759ac856eb45d2 /mcs
parent2e7fdc582406126993f5c2101464d3f56b5c0de3 (diff)
2004-08-13 Dick Porter <dick@ximian.com>
* StreamWriter.cs: Allow FileShare.Read access to the underlying FileStream, to be compatible with MS. Fixes bug 62152. svn path=/branches/mono-1-0/mcs/; revision=32307
Diffstat (limited to 'mcs')
-rw-r--r--mcs/class/corlib/System.IO/ChangeLog5
-rw-r--r--mcs/class/corlib/System.IO/StreamWriter.cs2
2 files changed, 6 insertions, 1 deletions
diff --git a/mcs/class/corlib/System.IO/ChangeLog b/mcs/class/corlib/System.IO/ChangeLog
index 2c281d7651c..19a9b7a3b59 100644
--- a/mcs/class/corlib/System.IO/ChangeLog
+++ b/mcs/class/corlib/System.IO/ChangeLog
@@ -1,3 +1,8 @@
+2004-08-13 Dick Porter <dick@ximian.com>
+
+ * StreamWriter.cs: Allow FileShare.Read access to the underlying
+ FileStream, to be compatible with MS. Fixes bug 62152.
+
2004-07-06 Dick Porter <dick@ximian.com>
* MonoIO.cs: Add ERROR_INVALID_PARAMETER to the exception list.
diff --git a/mcs/class/corlib/System.IO/StreamWriter.cs b/mcs/class/corlib/System.IO/StreamWriter.cs
index 4c51d0269be..117ab7f5d60 100644
--- a/mcs/class/corlib/System.IO/StreamWriter.cs
+++ b/mcs/class/corlib/System.IO/StreamWriter.cs
@@ -123,7 +123,7 @@ namespace System.IO {
else
mode = FileMode.Create;
- internalStream = new FileStream (path, mode, FileAccess.Write);
+ internalStream = new FileStream (path, mode, FileAccess.Write, FileShare.Read);
if (append)
internalStream.Position = internalStream.Length;