summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2006-01-12 16:19:03 (GMT)
committervincentdarley <vincentdarley>2006-01-12 16:19:03 (GMT)
commitc08d27f2b554febc0ff295fc7da3ab016e1ce81a (patch)
tree21171ba0eda02895adf586d3663d9a4f6a7b4b70
parent4fba402584534545a54e1ab6066c6858f2fe05a6 (diff)
downloadtcl-c08d27f2b554febc0ff295fc7da3ab016e1ce81a.zip
tcl-c08d27f2b554febc0ff295fc7da3ab016e1ce81a.tar.gz
tcl-c08d27f2b554febc0ff295fc7da3ab016e1ce81a.tar.bz2
fix to sharing violation
-rw-r--r--ChangeLog4
-rw-r--r--win/tclWinFile.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index a419f26..ac160d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-01-12 Vince Darley <vincentdarley@sourceforge.net>
+
+ * win/tclWinFile.c: fix to sharing violation [Bug 1366227]
+
2006-01-11 Don Porter <dgp@users.sourceforge.net>
* generic/tclBasic.c: Moved Tcl_LogCommandInfo from tclBasic.c to
diff --git a/win/tclWinFile.c b/win/tclWinFile.c
index f7fc5a4..f65e1c1 100644
--- a/win/tclWinFile.c
+++ b/win/tclWinFile.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinFile.c,v 1.81 2005/12/13 22:43:18 kennykb Exp $
+ * RCS: @(#) $Id: tclWinFile.c,v 1.82 2006/01/12 16:19:04 vincentdarley Exp $
*/
/* #define _WIN32_WINNT 0x0500 */
@@ -2018,7 +2018,8 @@ NativeStat(
* and if that isn't available, then on even simpler routines.
*/
fileHandle = (tclWinProcs->createFileProc) (
- nativePath, GENERIC_READ, 0, NULL, OPEN_EXISTING,
+ nativePath, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE,
+ NULL, OPEN_EXISTING,
FILE_FLAG_BACKUP_SEMANTICS | FILE_FLAG_OPEN_REPARSE_POINT, NULL);
if (fileHandle != INVALID_HANDLE_VALUE) {