Skip to content
Tcl Source Code Artifact [06329ae3b7]
Login

Artifact [06329ae3b7]

Artifact 06329ae3b7e7f3bb7e6d5fe6255c0bf78f9fb8dc:

Ticket change [06329ae3b7] - New ticket [3099612fffffffff|3099612fff] <i>false, shortcut string /../ simplification everywhere, all f</i>. by sto6 on 2010-10-31 06:15:59.
D 2010-10-31T06:15:59
J assignee vincentdarley
J cmimetype text/plain
J comment What\ssomeone\scalled\s'lexical\streatment\sof\s/../'\sin\spaths,\nwas\ssubject\sof\sbug\s961646:\s[file\snormalize]\schanges\sfile\sreference\n\nMuch\sworse,\s8.4.x\sdoes\sfalse,\sshortcut\sstring\s/../\ssimplification\sEVERYWHERE,\nfull-time\sfor\sALL\saccess\sto\sfiles\s(i.e.\snot\slimited\sto\sfile\snormalize).\n8.4.x\sdoes\snot\sresolve\ssymlinks\sahead\sof\sthe\s/../,\sbefore\sapplying\sthe\s'..'.\n\n$\sls\s-ld\s/etc/httpd/run\nlrwxrwxrwx\s1\sroot\sroot\s13\sFeb\s24\s\s2010\s/etc/httpd/run\s->\s../../var/run\n\n$\stclsh8.4\n%\sfile\sstat\s/etc/httpd/run/../tmp/.\sary;\sputs\s$ary(ino)\ncould\snot\sread\s"/etc/httpd/run/../tmp/.":\sno\ssuch\sfile\sor\sdirectory\n\n(incorrectly\sstats\s/etc/httpd/tmp,\signoring\sthat\srun\sis\ssymlink,\snot\sa\strue\sdir)\n\n$\stclsh8.5\n%\sfile\sstat\s/etc/httpd/run/../tmp/.\sary;\sputs\s$ary(ino)\n3746244\n\n$\sls\s-id\s/etc/httpd/run/../tmp/.\n3746244\s/etc/httpd/run/../tmp/.\n\nSome\sshells\s(e.g.\sbash)\soffer\schoice\sof\slogical\sversus\sphysical\ssymlink\sresolution\nin\sthe\s'cd'\scommand.\sExcept\sfor\ssuch\sspecialized\sflexibility\s(a\sCHOICE\sto\schange\sdir\nrelative\sto\sa\ssymlink-unresolved\spath)\sit\sis\snever\scorrect\sto\sdo\sthis\sfull-time\nfor\sall\sfile\saccess.\n\nright:\s8.3.3,\sSolaris8\nright:\s8.3.5,\sLinux\sRedHat\sEL3U6\nWRONG:\s8.4.2,\sSolaris8\nWRONG:\s8.4.13,\sLinux\sCentos5.2\nWRONG:\s8.4.19,\sLinux\sCentos5.2,\sActiveTcl\s8.4.19\s32bit\nright:\s8.5.7,\sMac-OS-X\s10.6.4\nright:\s8.5.9,\sLinux\sCentos5.2,\sActiveTcl\s8.5.9\s32bit\n\nSo\sno\sbug\sin\s8.3.x,\sbug\sin\s8.4.x,\sand\sno\sbug\sin\s8.5.x.\n\nHow\scould\sthis\shave\splagued\sessentially\sall\sof\s8.4.x?\nNow\sfixed\sagain,\swas\sit\sdeliberately\stargeted\s(what\sbug#)?\n\nOr\sis\sappearance,\sdisappearance\sof\sthis\sbug\smerely\sside-effect\sof\ndozens\sof\sother\sbug\sfixes,\sat\srisk\sto\sreturn\sagain\sin\s8.5\sor\slater\nas\sthe\swind\sblows?\s;)
J foundin obsolete:\s8.5.9
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter sto6
J subsystem 37.\sFile\sSystem
J title false,\sshortcut\sstring\s/../\ssimplification\severywhere,\sall\sf
J type Bug
K 3099612fffffffffffffffffffffffffffffffff
U sto6
Z 4dff4208deb1f6cdc2bd9fd6c076188a