Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 706e16520207a1a54980c1fbf1f9850f99a498b891c7efcb9cac3f63948f79c5
Ticket: 1827008fffffffffffffffffffffffffffffffff
delete and copy fail in linux when path contains ".."
User & Date: serhiy.storchaka on 2026-10-17 09:08:45
Changes

  1. foundin changed to: "8.6.18, 9.0.5, 9.1.0"
  2. icomment:
    Still there, and since 8.5 the failure is silent: <nowiki>[file delete -force d1/d2/d3/..]</nowiki> deletes the contents of d2 but not d2 itself, and returns success (the final rmdir() fails with ENOENT, which is ignored).
    Proposed fix in branch [/timeline?r=delete-refuse-dot-dot|delete-refuse-dot-dot]: on Unix, refuse to remove a path ending in "." or "..", as rm(1) does. Normalizing the path, as on Windows, would be wrong on POSIX: ".." is resolved physically there, so if d3 is a symbolic link, "d1/d2/d3/.." is the parent of its target, not "d1/d2". Test fCmd-5.14.
    
  3. login: "serhiy.storchaka"
  4. mimetype: "text/x-fossil-wiki"