Skip to content
Tcl Source Code History Of Ticket 3099612
Login

History Of Ticket 3099612

Artifacts Associated With Ticket 3099612

  1. Ticket change [06329ae3b7] (rid 89180) by sto6 on 2010-10-31 06:15:59:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. 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? ;)
      
    4. foundin initialized to: "obsolete: 8.5.9"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "sto6"
    10. subsystem initialized to: "37. File System"
    11. title initialized to:
      false, shortcut string /../ simplification everywhere, all f
      
    12. type initialized to: "Bug"
  2. Ticket change [6f7cef3551] (rid 100326) by dgp on 2010-11-01 20:36:23:

    1. icomment:
      Please find a test in the test suite
      that tests this matter.  If one does not
      exist, please provide one we can add.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [6cc8a2a60c] (rid 259330) by serhiy.storchaka on 2026-10-19 18:44:31:

    1. 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.
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"