Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cbfcf5d2d486c6029562e2c0d05f9639d0209bb2daea5802502d96f9ec14e868
Ticket: 82049f96f841214bb8cee18e1bf8f84aa25ed9aa
file copy attempts to copy directory into itself
User & Date: anonymous on 2018-11-21 14:06:54
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Tcl's "file copy" functionality attempts to copy a directory into itself.  Like:
    
    $ mkdir 1
    $ mkdir 1/2
    $ tclsh
    % file copy 1 1/2
    error copying "1" to "1/2/1": "1/2/1/2/1/2[long string deleted]": file name too long
    
    Other, similar programs seem to check the inodes of the path to ensure directories don't get copied into themselves:
    
    $ mkdir 1
    $ mkdir 1/2
    $ cp -r 1 1/2
    cp: cannot copy a directory, '1', into itself, '1/2/1'
    
  5. foundin changed to: "8.6"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "anonymous"
  13. subsystem changed to: "37. File System"
  14. title changed to: "file copy attempts to copy directory into itself"
  15. type changed to: "Bug"