Overview
| Artifact ID: | 36b590b922a46b3d61e7cca37ee1f6fe868319c227cdfddef044595e9dd4b104 |
|---|---|
| Ticket: | 3577801fffffffffffffffffffffffffffffffff
Issue with [file normalize] on Linux with symlink wtih ".." |
| User & Date: | serhiy.storchaka on 2026-10-19 18:44:30 |
Changes
- foundin changed to: "8.6.18, 9.0.5, 9.1.0"
- icomment:
Still present in 8.6, 9.0 and 9.1: when ".." follows a link, the link target is used literally, so ".." or "." in the target, a trailing "/" or a chain of links give a wrong result (<tt>d/l/..</tt> with <tt>l -> ../x</tt> gives <tt>d/..</tt>). Proposed fix in branch [/timeline?r=normalize-dotdot-after-link|normalize-dotdot-after-link], together with [3570244fff], [3183016fff] and [3099612fff]: on Unix the link target is normalized and further links are followed before backing up, so the results agree with realpath(). Tests filesystem-1.55 to 1.58. The last component of a path is still not resolved, as documented.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"