diff options
author | sebres <sebres@users.sourceforge.net> | 2019-01-14 10:00:46 (GMT) |
---|---|---|
committer | sebres <sebres@users.sourceforge.net> | 2019-01-14 10:00:46 (GMT) |
commit | 6933dc699128b0c5f9f0f2174efcc760a1c35eda (patch) | |
tree | c4ce08e7b847e89b8cc280f3d20b40bf96a513cc /win | |
parent | 0e3cc87362584b9a0cc3bb6890dd588e50fd979f (diff) | |
download | tcl-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)
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinTest.c | 4 |
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). |