Overview
| Artifact ID: | 7e92728ffe0f041f1767b7d1244f1735f6943e01 |
|---|---|
| Ticket: | 3092089fffffffffffffffffffffffffffffffff
[file normalize] can remove path components |
| User & Date: | oehhar on 2012-12-13 16:47:16 |
Changes
- icomment:
I have tried the patch proposed at this comment: Date: 2011-12-12 06:47:09 PST Sender: dunkfan with tcl8.5.13, msvc++ 6, Makefile.vc, win vista 32 bit. Here is the applied patch: --- C:/test/tcl8.5.13/win/tclWinFile_ori.cTue Nov 06 16:05:00 2012 +++ C:/test/tcl8.5.13/win/tclWinFile.cThu Dec 13 09:47:22 2012 @@ -704,7 +704,7 @@ HANDLE hFile; DWORD returnedLength; - hFile = (*tclWinProcs->createFileProc)(linkDirPath, GENERIC_READ, 0, + hFile = (*tclWinProcs->createFileProc)(linkDirPath, 0, 0, NULL, OPEN_EXISTING, FILE_FLAG_OPEN_REPARSE_POINT|FILE_FLAG_BACKUP_SEMANTICS, NULL); Results: 1) The issue is solved for me. The demonstration in comment Date: 2012-11-15 01:05:50 PST Sender: oehhar of tcl bug 3587096 now returns: % file normalize c:/test2_junction/tcl860rc0 C:/test2/tcl860rc0 % file normalize c:/test2_junction/tcl860rc0/bin C:/test2/tcl860rc0/bin % file normalize c:/test2_junction/tcl860rc0/bin/junk 2) Bug 3587096 is also solved 3) Many many tests fail in the test suite with "permission denied on file access" The test log is in the file section (200kB). Here the first failure as an example: ==== autoMkindex-4.1 platform indenpendant source commands FAILED ==== Contents of test case: file delete tclIndex auto_mkindex . pkg/samename.tcl set f [open tclIndex r] set dat [split [string trim [read $f]] "\n"] set len [llength $dat] set result [lsort [lrange $dat [expr {$len-2}] [expr {$len-1}]]] close $f set result ---- Test generated error; Return code was: 1 ---- Return code should have been one of: 0 2 ---- errorInfo: couldn't open "tclIndex": permission denied while executing "open "tclIndex" w" (procedure "auto_mkindex" line 32) invoked from within "auto_mkindex . pkg/samename.tcl" ("uplevel" body line 3) invoked from within "uplevel 1 $script" ---- errorCode: POSIX EACCES {permission denied} ==== autoMkindex-4.1 FAILED 3) In a practical test, the modified version worked well for me. Thank you, Harald - login: "oehhar"
- mimetype: "text/plain"
- username: "oehhar"