summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2019-01-14 10:00:46 (GMT)
committersebres <sebres@users.sourceforge.net>2019-01-14 10:00:46 (GMT)
commit6933dc699128b0c5f9f0f2174efcc760a1c35eda (patch)
treec4ce08e7b847e89b8cc280f3d20b40bf96a513cc
parent0e3cc87362584b9a0cc3bb6890dd588e50fd979f (diff)
downloadtcl-6933dc699128b0c5f9f0f2174efcc760a1c35eda.zip
tcl-6933dc699128b0c5f9f0f2174efcc760a1c35eda.tar.gz
tcl-6933dc699128b0c5f9f0f2174efcc760a1c35eda.tar.bz2
win: allows testchmod to reset DELETE DACL-mask (repaired several tests winFCmd-6.*, winFCmd-9.3, that should catch EACCESS)
-rw-r--r--win/tclWinTest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinTest.c b/win/tclWinTest.c
index b2fe6c0..aa2c15a 100644
--- a/win/tclWinTest.c
+++ b/win/tclWinTest.c
@@ -399,11 +399,11 @@ TestplatformChmod(
{
static const SECURITY_INFORMATION infoBits = OWNER_SECURITY_INFORMATION
| GROUP_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION;
- /* don't deny DELETE mask (reset writable only, allow test-cases cleanup) */
+ /* don't reset change permissions mask (WRITE_DAC, allow test-cases restore it to cleanup) */
static const DWORD readOnlyMask = FILE_DELETE_CHILD | FILE_ADD_FILE
| FILE_ADD_SUBDIRECTORY | FILE_WRITE_EA | FILE_APPEND_DATA
| FILE_WRITE_DATA
- /* | DELETE */;
+ | DELETE;
/*
* References to security functions (only available on NT and later).