Skip to content
Tcl Source Code Artifact [531ed03e1a]
Login

Artifact [531ed03e1a]

Artifact 531ed03e1abdf46d7973987e83b884330241e256:

Ticket change [531ed03e1a] - Ticket [3092089fffffffff|3092089fff] <i>[file normalize] can remove path components</i> status still Open with 4 other changes by oehhar on 2013-01-07 17:27:29.
D 2013-01-07T17:27:29
J icomment Thank\syou,\sJan,\sfor\sthe\spatch.\n\nI\shave\sbuild\sand\stested\sit,\stogether\swith\stk8.5.13\son\sWin\sVista\s32bit\sGER\sand\smsvc\s6++.\n\nStartup\sof\stcl\sand\stk\sover\sa\srestricted\sjunction\sis\sok.\nPractical\stest:\s(junction\ssetup\sas\sdescribed\sin\sformer\spost:\n\s-\stcl\sin\sc:\\test2\\tcl-bug-3092089\n\s-\sJunction\sc:\\test2_junction\sto\sc:\\test2\s)\nStart\swish\sin\sc:\\test2_junction\\tcl8513-bug-3092089\\bin\\wish85t.exe\n---wish\sconsole---\n%\sfile\snormalize\sc:/test2_junction\nC:/test2_junction\n%\sinfo\snameofexecutable\nc:/test2_junction/tcl8513-bug-3092089/bin/wish85t.exe\n%\sfile\snormalize\s[info\snameofexecutable]\nC:/test2/tcl8513-bug-3092089/bin/wish85t.exe\n%\sfile\snormalize\sc:/test2_junction/nonexisting_folder\nC:/test2/nonexisting_folder\n%\sopen\sc:/test2_junction/tcl8513-bug-3092089/include/tcl.h\nfile2aa5ad8\n---END---\nHere\sis\sa\scomparison\sto\stcl8.5.13\s(not\sstarted\sover\sthe\sjunction):\n---wish\sconsole---\n%\sfile\snormalize\sc:/test2_junction\nC:/test2_junction\n%\sfile\snormalize\sc:/test2_junction/tcl8513-bug-3092089/bin/wish85t.exe\nC:/test2_junction//bin/wish85t.exe\n%\sfile\snormalize\sc:/test2_junction/nonexisting_folder\nC:/test2_junction/nonexisting_folder\nopen\sc:/test2_junction/tcl8513-bug-3092089/include/tcl.h\nfile2aa7318\n---END---\nAll\sbugs\sdisapeared.\sTo\sresolve\s"file\snormalize\sc:/test2_junction"\sto\s"c:/test2"\sinstead\n"C:/test2_junction"\sis\sIMHO\sa\s"Nice\sto\shave".\n\nMake\stest\sresults\sof\sthe\spatch\sand\sthe\sregular\s8.5.13\srelease\sare\sbelow.\nThe\sfollowing\stests\sfail\sin\sthe\sdifferent\sversions:\nTest\s#\s:\sbugfix\s:\s8.5.13\n------------------------------\nfilesystem-1.3\s:\sfail\s:\sfail\nfilesystem-1.4\s:\sfail\s:\sfail\nio-39.8\s:\sfail\s:\sok\nio-39.9\s:\sfail\s:\sok\nwinFCmd-6.1\s:\sfail\s:\sfail\nwinFCmd-6.9\s:\sfail\s:\sfail\nwinFCmd-6.13\s:\sfail\s:\sfail\nwinFCmd-9.3\s:\sfail\s:\sfail\nwinFCmd-12.6\s:\sfail\s:\sfail\n\nThus,\sthere\sare\sthe\stwo\sio\stests\sfailing\sin\sthe\sbug\sfix\srelease\swhich\sdid\ssucceed\sin\sthe\s8.5.13\srelease.\nI\shave\sno\sidea\swhy.\n\nThank\syou,\nHarald\n---------------------------------------------------------------------------\n\n---\sMake\stest\sof\sthe\sbugfix\srelease\s--\n\nnmake\s-f\sMakefile.vc\srelease\sOPTS=threads\nnmake\s-f\sMakefile.vc\stest\sOPTS=threads\n\n====\sfilesystem-1.3\slink\snormalisation\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\stestPathEqual\s[file\snormalize\s[file\sjoin\sdir.dir\sfoo]]\s\s[file\snormalize\s[fil\ne\sjoin\sdir.link\sfoo]]\n\n----\sResult\swas:\nnot\sequal:\sC:/test/tcl-bug-3092089/win/dir.dir/foo\sC:/test/tcl-bug-3092089/win/d\nir.link/foo\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\n1\n====\sfilesystem-1.3\sFAILED\n\n\n\n====\sfilesystem-1.4\slink\snormalisation\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\stestPathEqual\s[file\snormalize\s[file\sjoin\sdir.dir\sinside.file]]\s\s[file\snormal\nize\s[file\sjoin\sdir.link\sinside.file]]\n\n----\sResult\swas:\nnot\sequal:\sC:/test/tcl-bug-3092089/win/dir.dir/inside.file\sC:/test/tcl-bug-30920\n89/win/dir.link/inside.file\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\n1\n====\sfilesystem-1.4\sFAILED\n\n====\sio-39.8\sTcl_SetChannelOption,\sdifferent\sbuffering\soptions\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\sfile\sdelete\s$path(test1)\n\s\s\s\sset\sf1\s[open\s$path(test1)\sw]\n\s\s\s\sset\sl\s""\n\s\s\s\sfconfigure\s$f1\s-translation\slf\s-buffering\snone\s-eofchar\s{}\n\s\s\s\sputs\s-nonewline\s$f1\shello\n\s\s\s\slappend\sl\s[file\ssize\s$path(test1)]\n\s\s\s\sputs\s-nonewline\s$f1\shello\n\s\s\s\slappend\sl\s[file\ssize\s$path(test1)]\n\s\s\s\sfconfigure\s$f1\s-buffering\sfull\n\s\s\s\sputs\s-nonewline\s$f1\shello\n\s\s\s\slappend\sl\s[file\ssize\s$path(test1)]\n\s\s\s\sfconfigure\s$f1\s-buffering\snone\n\s\s\s\slappend\sl\s[file\ssize\s$path(test1)]\n\s\s\s\sputs\s-nonewline\s$f1\shello\n\s\s\s\slappend\sl\s[file\ssize\s$path(test1)]\n\s\s\s\sclose\s$f1\n\s\s\s\slappend\sl\s[file\ssize\s$path(test1)]\n\s\s\s\sset\sl\n\n----\sTest\sgenerated\serror;\sReturn\scode\swas:\s1\n----\sReturn\scode\sshould\shave\sbeen\sone\sof:\s0\s2\n----\serrorInfo:\scouldn't\sopen\s"C:/test/tcl-bug-3092089/win/test1":\spermission\sde\nnied\n\s\s\s\swhile\sexecuting\n"open\s$path(test1)\sw"\n\s\s\s\s("uplevel"\sbody\sline\s3)\n\s\s\s\sinvoked\sfrom\swithin\n"uplevel\s1\s$script"\n----\serrorCode:\sPOSIX\sEACCES\s{permission\sdenied}\n====\sio-39.8\sFAILED\n\n====\sio-39.9\sTcl_SetChannelOption,\sblocking\smode\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\sfile\sdelete\s$path(test1)\n\s\s\s\sset\sf1\s[open\s$path(test1)\sw]\n\s\s\s\sclose\s$f1\n\s\s\s\sset\sf1\s[open\s$path(test1)\sr]\n\s\s\s\sset\sx\s""\n\s\s\s\slappend\sx\s[fconfigure\s$f1\s-blocking]\n\s\s\s\sfconfigure\s$f1\s-blocking\soff\n\s\s\s\slappend\sx\s[fconfigure\s$f1\s-blocking]\n\s\s\s\slappend\sx\s[gets\s$f1]\n\s\s\s\slappend\sx\s[read\s$f1\s1000]\n\s\s\s\slappend\sx\s[fblocked\s$f1]\n\s\s\s\slappend\sx\s[eof\s$f1]\n\s\s\s\sclose\s$f1\n\s\s\s\sset\sx\n\n----\sTest\sgenerated\serror;\sReturn\scode\swas:\s1\n----\sReturn\scode\sshould\shave\sbeen\sone\sof:\s0\s2\n----\serrorInfo:\scouldn't\sopen\s"C:/test/tcl-bug-3092089/win/test1":\spermission\sde\nnied\n\s\s\s\swhile\sexecuting\n"open\s$path(test1)\sw"\n\s\s\s\s("uplevel"\sbody\sline\s3)\n\s\s\s\sinvoked\sfrom\swithin\n"uplevel\s1\s$script"\n----\serrorCode:\sPOSIX\sEACCES\s{permission\sdenied}\n====\sio-39.9\sFAILED\n\n====\swinFCmd-6.1\sTclpRemoveDirectory:\serrno:\sEACCES\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\scleanup\n\s\s\s\sfile\smkdir\std1\n\s\s\s\stestchmod\s000\std1\n\s\s\s\scatch\s{\n\s\s\s\s\s\s\s\stestfile\srmdir\std1\n\s\s\s\s\s\s\s\sfile\sexists\std1\n\s\s\s\s}\sr\n\s\s\s\scatch\s{\n\s\s\s\s\s\s\s\stestchmod\s777\std1\n\s\s\s\s\s\s\s\scleanup\n\s\s\s\s}\n\s\s\s\sset\sr\n\n----\sResult\swas:\ntd1\sEACCES\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\n0\n====\swinFCmd-6.1\sFAILED\n\n\n\n====\swinFCmd-6.9\sTclpRemoveDirectory:\serrno\s==\sEACCES\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\scleanup\n\s\s\s\sfile\smkdir\std1\n\s\s\s\stestchmod\s000\std1\n\s\s\s\scatch\s{\n\s\s\s\s\s\s\s\stestfile\srmdir\std1\n\s\s\s\s\s\s\s\sfile\sexists\std1\n\s\s\s\s}\sr\n\s\s\s\scatch\s{\n\s\s\s\s\s\s\s\stestchmod\s777\std1\n\s\s\s\s\s\s\s\scleanup\n\s\s\s\s}\n\s\s\s\sset\sr\n\n----\sResult\swas:\ntd1\sEACCES\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\n0\n====\swinFCmd-6.9\sFAILED\n\n====\swinFCmd-6.13\sTclpRemoveDirectory:\swrite-protected\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\scleanup\n\s\s\s\sfile\smkdir\std1\n\s\s\s\stestchmod\s000\std1\n\s\s\s\scatch\s{\n\s\s\s\s\s\s\s\stestfile\srmdir\std1\n\s\s\s\s\s\s\s\sfile\sexists\std1\n\s\s\s\s}\sr\n\s\s\s\scatch\s{\n\s\s\s\s\s\s\s\stestchmod\s777\std1\n\s\s\s\s\s\s\s\scleanup\n\s\s\s\s}\n\s\s\s\sset\sr\n\n----\sResult\swas:\ntd1\sEACCES\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\n0\n====\swinFCmd-6.13\sFAILED\n\n\n\n====\swinFCmd-9.3\sTraversalDelete:\sDOTREE_PRED\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\scleanup\n\s\s\s\sfile\smkdir\std1/td2\n\s\s\s\stestchmod\s000\std1\n\s\s\s\scatch\s{\n\s\s\s\s\s\s\s\stestfile\srmdir\s-force\std1\n\s\s\s\s\s\s\s\sfile\sexists\std1\n\s\s\s\s}\sr\n\s\s\s\scatch\s{\n\s\s\s\s\s\s\s\stestchmod\s777\std1\n\s\s\s\s\s\s\s\scleanup\n\s\s\s\s}\n\s\s\s\sset\sr\n\n----\sResult\swas:\ntd1\sEACCES\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\n0\n====\swinFCmd-9.3\sFAILED\n\n====\swinFCmd-12.6\sConvertFileNameFormat:\sabsolute\spath\swith\sdrive\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\scatch\s{file\sdelete\s-force\s--\sc:/td1}\n\s\s\s\sclose\s[open\sc:/td1\sw]\n\s\s\s\slist\s[catch\s{string\stolower\s[file\sattributes\sc:/td1\s-longname]}\smsg]\s$msg\s[f\nile\sdelete\s-force\s--\sc:/td1]\n\n----\sTest\sgenerated\serror;\sReturn\scode\swas:\s1\n----\sReturn\scode\sshould\shave\sbeen\sone\sof:\s0\s2\n----\serrorInfo:\scouldn't\sopen\s"c:/td1":\sinvalid\sargument\n\s\s\s\swhile\sexecuting\n"open\sc:/td1\sw"\n\s\s\s\s("uplevel"\sbody\sline\s3)\n\s\s\s\sinvoked\sfrom\swithin\n"uplevel\s1\s$script"\n----\serrorCode:\sPOSIX\sEINVAL\s{invalid\sargument}\n====\swinFCmd-12.6\sFAILED\n\n--\sMake\stest\sof\stcl8.5.13\s--\n\n====\sfilesystem-1.3\slink\snormalisation\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\stestPathEqual\s[file\snormalize\s[file\sjoin\sdir.dir\sfoo]]\s\s[file\snormalize\s[fil\ne\sjoin\sdir.link\sfoo]]\n\n----\sResult\swas:\nnot\sequal:\sC:/test/tcl8.5.13/win/dir.dir/foo\sC:/test/tcl8.5.13/win/dir.link/foo\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\n1\n====\sfilesystem-1.3\sFAILED\n\n\n\n====\sfilesystem-1.4\slink\snormalisation\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\stestPathEqual\s[file\snormalize\s[file\sjoin\sdir.dir\sinside.file]]\s\s[file\snormal\nize\s[file\sjoin\sdir.link\sinside.file]]\n\n----\sResult\swas:\nnot\sequal:\sC:/test/tcl8.5.13/win/dir.dir/inside.file\sC:/test/tcl8.5.13/win/dir.l\nink/inside.file\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\n1\n====\sfilesystem-1.4\sFAILED\n\n====\swinFCmd-6.1\sTclpRemoveDirectory:\serrno:\sEACCES\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\scleanup\n\s\s\s\sfile\smkdir\std1\n\s\s\s\stestchmod\s000\std1\n\s\s\s\scatch\s{\n\s\s\s\s\s\s\s\stestfile\srmdir\std1\n\s\s\s\s\s\s\s\sfile\sexists\std1\n\s\s\s\s}\sr\n\s\s\s\scatch\s{\n\s\s\s\s\s\s\s\stestchmod\s777\std1\n\s\s\s\s\s\s\s\scleanup\n\s\s\s\s}\n\s\s\s\sset\sr\n\n----\sResult\swas:\ntd1\sEACCES\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\n0\n====\swinFCmd-6.1\sFAILED\n\n\n\n====\swinFCmd-6.9\sTclpRemoveDirectory:\serrno\s==\sEACCES\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\scleanup\n\s\s\s\sfile\smkdir\std1\n\s\s\s\stestchmod\s000\std1\n\s\s\s\scatch\s{\n\s\s\s\s\s\s\s\stestfile\srmdir\std1\n\s\s\s\s\s\s\s\sfile\sexists\std1\n\s\s\s\s}\sr\n\s\s\s\scatch\s{\n\s\s\s\s\s\s\s\stestchmod\s777\std1\n\s\s\s\s\s\s\s\scleanup\n\s\s\s\s}\n\s\s\s\sset\sr\n\n----\sResult\swas:\ntd1\sEACCES\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\n0\n====\swinFCmd-6.9\sFAILED\n\n====\swinFCmd-6.13\sTclpRemoveDirectory:\swrite-protected\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\scleanup\n\s\s\s\sfile\smkdir\std1\n\s\s\s\stestchmod\s000\std1\n\s\s\s\scatch\s{\n\s\s\s\s\s\s\s\stestfile\srmdir\std1\n\s\s\s\s\s\s\s\sfile\sexists\std1\n\s\s\s\s}\sr\n\s\s\s\scatch\s{\n\s\s\s\s\s\s\s\stestchmod\s777\std1\n\s\s\s\s\s\s\s\scleanup\n\s\s\s\s}\n\s\s\s\sset\sr\n\n----\sResult\swas:\ntd1\sEACCES\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\n0\n====\swinFCmd-6.13\sFAILED\n\n\n\n====\swinFCmd-9.3\sTraversalDelete:\sDOTREE_PRED\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\scleanup\n\s\s\s\sfile\smkdir\std1/td2\n\s\s\s\stestchmod\s000\std1\n\s\s\s\scatch\s{\n\s\s\s\s\s\s\s\stestfile\srmdir\s-force\std1\n\s\s\s\s\s\s\s\sfile\sexists\std1\n\s\s\s\s}\sr\n\s\s\s\scatch\s{\n\s\s\s\s\s\s\s\stestchmod\s777\std1\n\s\s\s\s\s\s\s\scleanup\n\s\s\s\s}\n\s\s\s\sset\sr\n\n----\sResult\swas:\ntd1\sEACCES\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\n0\n====\swinFCmd-9.3\sFAILED\n\n====\swinFCmd-12.6\sConvertFileNameFormat:\sabsolute\spath\swith\sdrive\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\scatch\s{file\sdelete\s-force\s--\sc:/td1}\n\s\s\s\sclose\s[open\sc:/td1\sw]\n\s\s\s\slist\s[catch\s{string\stolower\s[file\sattributes\sc:/td1\s-longname]}\smsg]\s$msg\s[f\nile\sdelete\s-force\s--\sc:/td1]\n\n----\sTest\sgenerated\serror;\sReturn\scode\swas:\s1\n----\sReturn\scode\sshould\shave\sbeen\sone\sof:\s0\s2\n----\serrorInfo:\scouldn't\sopen\s"c:/td1":\sinvalid\sargument\n\s\s\s\swhile\sexecuting\n"open\sc:/td1\sw"\n\s\s\s\s("uplevel"\sbody\sline\s3)\n\s\s\s\sinvoked\sfrom\swithin\n"uplevel\s1\s$script"\n----\serrorCode:\sPOSIX\sEINVAL\s{invalid\sargument}\n====\swinFCmd-12.6\sFAILED\n\n\n
J login oehhar
J mimetype text/plain
J username oehhar
K 3092089fffffffffffffffffffffffffffffffff
U oehhar
Z e17f570684825f9d466d221e31f0b1c1