Artifacts Associated With Ticket 3099612fffffffffffffffffffffffffffffffff
Ticket change [06329ae3b7] (rid 89180) by sto6 on 2010-10-31 06:15:59:
- assignee initialized to: "vincentdarley"
- cmimetype initialized to: "text/plain"
- comment initialized to:
What someone called 'lexical treatment of /../' in paths, was subject of bug 961646: [file normalize] changes file reference Much worse, 8.4.x does false, shortcut string /../ simplification EVERYWHERE, full-time for ALL access to files (i.e. not limited to file normalize). 8.4.x does not resolve symlinks ahead of the /../, before applying the '..'. $ ls -ld /etc/httpd/run lrwxrwxrwx 1 root root 13 Feb 24 2010 /etc/httpd/run -> ../../var/run $ tclsh8.4 % file stat /etc/httpd/run/../tmp/. ary; puts $ary(ino) could not read "/etc/httpd/run/../tmp/.": no such file or directory (incorrectly stats /etc/httpd/tmp, ignoring that run is symlink, not a true dir) $ tclsh8.5 % file stat /etc/httpd/run/../tmp/. ary; puts $ary(ino) 3746244 $ ls -id /etc/httpd/run/../tmp/. 3746244 /etc/httpd/run/../tmp/. Some shells (e.g. bash) offer choice of logical versus physical symlink resolution in the 'cd' command. Except for such specialized flexibility (a CHOICE to change dir relative to a symlink-unresolved path) it is never correct to do this full-time for all file access. right: 8.3.3, Solaris8 right: 8.3.5, Linux RedHat EL3U6 WRONG: 8.4.2, Solaris8 WRONG: 8.4.13, Linux Centos5.2 WRONG: 8.4.19, Linux Centos5.2, ActiveTcl 8.4.19 32bit right: 8.5.7, Mac-OS-X 10.6.4 right: 8.5.9, Linux Centos5.2, ActiveTcl 8.5.9 32bit So no bug in 8.3.x, bug in 8.4.x, and no bug in 8.5.x. How could this have plagued essentially all of 8.4.x? Now fixed again, was it deliberately targeted (what bug#)? Or is appearance, disappearance of this bug merely side-effect of dozens of other bug fixes, at risk to return again in 8.5 or later as the wind blows? ;)
- foundin initialized to: "obsolete: 8.5.9"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "sto6"
- subsystem initialized to: "37. File System"
- title initialized to:
false, shortcut string /../ simplification everywhere, all f
- type initialized to: "Bug"
Ticket change [6f7cef3551] (rid 100326) by dgp on 2010-11-01 20:36:23:
- icomment:
Please find a test in the test suite that tests this matter. If one does not exist, please provide one we can add.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [6cc8a2a60c] (rid 259330) by serhiy.storchaka on 2026-10-19 18:44:31:
- icomment:
This works correctly since 8.5 (the link is resolved before ".."), and <nowiki>[file normalize]</nowiki> is covered by filesystem-1.26 to 1.28. As asked, branch [/timeline?r=normalize-dotdot-after-link|normalize-dotdot-after-link] adds test filesystem-1.58 for <nowiki>[file stat]</nowiki> and <nowiki>[file exists]</nowiki> through a relative link and "..". The ticket can be closed when it is merged.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- icomment: