Overview
| Artifact ID: | bb26a75d7d78d425338891f565fbb82797b482a0 |
|---|---|
| Ticket: | 1193497fffffffffffffffffffffffffffffffff
file writable lies for certain XP directories |
| User & Date: | jfg118 on 2006-03-14 06:51:19 |
Changes
- icomment:
Logged In: YES user_id=1266631 I have attached a patch for generic/testTcl.c on Duplicate bug 1344540. The patch alters the testchmod for directories to apply an ACL change to make the directory non-writable. With the change only the five tests below fail with the patch applied to fix this bug. At this point I would say the the patch is functioning properly as designed. Let me know what else needs to be done to get this patch applied to CVS HEAD and the 8.4 branch. Testcase Analysis: fCmd-10.3 file copy: comprehensive: dir to new name FAILED fCmd-10.8 file rename: comprehensive: dir to new name and dir FAILED >>> FAIL REASON: the directory permissions are not preserved on copy. td4 is writable. This is how ACL's work on windows. They are for the most part inherited from the parent. Are these tests valid for WinNT? If so perhaps a second "testchmod" could be applied after the copy to the new directory. -- winFCmd-7.11 TraverseWinTree: call TraversalCopy: DOTREE_PRED FAILED winFCmd-7.19 TraverseWinTree: call TraversalCopy: DOTREE_POSTD FAILED >>> FAIL REASON: testchmod 000 makes the td1 directory not writable, and you cannot create td1/tf1. The testcases appears to be invalid. -- tcltest-8.4 tcltest a.tcl -tmpdir notWriteableDir FAILED >>> FAIL REASON: the {file attributes $notWriteableDir -readonly 1} command does not make the directory non writable. Perhaps this this test invalid for WinNT as the readonly attribute does not make the directory non writeable. =========================================================== Detailed Test Failure information (LOGS): ==== fCmd-10.3 file copy: comprehensive: dir to new name FAILED >>> FAILS BECAUSE the directory permissions are not preserved on copy. td4 is writable. This is how ACL's work on windows. They are for the most part inherited from the parent. ==== Contents of test case: cleanup file mkdir [file join td1 tdx] file mkdir [file join td2 tdy] testchmod 555 td2 file copy td1 td3 file copy td2 td4 set msg [list [lsort [glob td*]] [glob -directory td3 t*] [glob -directory td4 t*] [file writable td3] [file writable td4]] if {$tcl_platform(platform) != "macintosh"} { testchmod 755 td2 testchmod 755 td4 } set msg ---- Result was: {td1 td2 td3 td4} td3/tdx td4/tdy 1 1 ---- Result should have been (exact matching): {td1 td2 td3 td4} td3/tdx td4/tdy 1 0 ==== fCmd-10.3 FAILED ==== fCmd-10.8 file rename: comprehensive: dir to new name and dir FAILED >>> FAILS BECAUSE the directory permissions are not preserved on copy. td4 is writable. This is how ACL's work on windows. They are for the most part inherited from the parent. ==== Contents of test case: cleanup file mkdir td1 file mkdir td2 file mkdir td3 testchmod 555 td2 file copy td1 [file join td3 td3] file copy td2 [file join td3 td4] list [lsort [glob td*]] [lsort [glob -directory td3 t*]] [file writable [file join td3 td3]] [file writable [file join td3 td4]] ---- Result was: {td1 td2 td3} {td3/td3 td3/td4} 1 1 ---- Result should have been (exact matching): {td1 td2 td3} {td3/td3 td3/td4} 1 0 ==== fCmd-10.8 FAILED ==== winFCmd-7.11 TraverseWinTree: call TraversalCopy: DOTREE_PRED FAILED >>> FAILS BECAUSE testchmod 000 makes the td1 directory not writable, and you cannot create td1/tf1 ==== Contents of test case: cleanup file mkdir td1 testchmod 000 td1 createfile td1/tf1 tf1 testfile cpdir td1 td2 list [file exists td2] [file writable td2] ---- Test generated error; Return code was: 1 ---- Return code should have been one of: 0 2 ---- errorInfo: couldn't open "td1/tf1": permission denied while executing "open $file w" (procedure "createfile" line 2) invoked from within "createfile td1/tf1 tf1" ("uplevel" body line 5) invoked from within "uplevel 1 $script" ---- errorCode: POSIX EACCES {permission denied} ==== winFCmd-7.11 FAILED ==== winFCmd-7.19 TraverseWinTree: call TraversalCopy: DOTREE_POSTD FAILED >>> FAILS BECAUSE testchmod 000 makes the td1 directory not writable, and you cannot create td1/tf1 ==== Contents of test case: cleanup file mkdir td1 testchmod 000 td1 createfile td1/tf1 tf1 testfile cpdir td1 td2 list [file exists td2] [file writable td2] ---- Test generated error; Return code was: 1 ---- Return code should have been one of: 0 2 ---- errorInfo: couldn't open "td1/tf1": permission denied while executing "open $file w" (procedure "createfile" line 2) invoked from within "createfile td1/tf1 tf1" ("uplevel" body line 5) invoked from within "uplevel 1 $script" ---- errorCode: POSIX EACCES {permission denied} ==== winFCmd-7.19 FAILED ==== tcltest-8.4 tcltest a.tcl -tmpdir notWriteableDir FAILED >>> Fails because the {file attributes $notWriteableDir -readonly 1} command >>> does not make the directory non writable. Perhaps this test is invalid >>> for windows NT as the readonly attribute does not make the directory >>> not writeable. ==== Contents of test case: slave msg $a -tmpdir $notWriteableDir string match {*not writeable*} $msg ---- Result was: 0 ---- Result should have been (exact matching): 1 ==== tcltest-8.4 FAILED - login: "jfg118"
- mimetype: "text/plain"
- username: "jfg118"