summaryrefslogtreecommitdiffstats
path: root/win/tclWinFile.c
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2018-07-12 14:25:09 (GMT)
committersebres <sebres@users.sourceforge.net>2018-07-12 14:25:09 (GMT)
commita1790a1683260fc9a0492227e22edd6e16d9d640 (patch)
treec89b101a803ae57a2af382fb9a87956331184d55 /win/tclWinFile.c
parent2a46a486706d9b30fc3eb90f975317bfdd3a9e40 (diff)
parent885a163b3c4ec29beb88d95cf6ff60687aa25223 (diff)
downloadtcl-a1790a1683260fc9a0492227e22edd6e16d9d640.zip
tcl-a1790a1683260fc9a0492227e22edd6e16d9d640.tar.gz
tcl-a1790a1683260fc9a0492227e22edd6e16d9d640.tar.bz2
merge 8.5
Diffstat (limited to 'win/tclWinFile.c')
-rw-r--r--win/tclWinFile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c
index 8bb572b..fc189da 100644
--- a/win/tclWinFile.c
+++ b/win/tclWinFile.c
@@ -2022,7 +2022,8 @@ NativeStat(
*/
fileHandle = CreateFile(nativePath, GENERIC_READ,
- FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING,
+ FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
+ NULL, OPEN_EXISTING,
FILE_FLAG_BACKUP_SEMANTICS | FILE_FLAG_OPEN_REPARSE_POINT, NULL);
if (fileHandle != INVALID_HANDLE_VALUE) {