Skip to content
Tcl Source Code History Of Ticket 747575ffffffffff
Login

History Of Ticket 747575ffffffffff

Artifacts Associated With Ticket 747575ffffffffff

  1. Ticket change [49371573a6] (rid 100024) by jgodfrey on 2003-06-02 15:01:30:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      System: ActiveTcl 8.4.2 / WinNT
      
      - In a Windows command window, create a 
      directory.  Say.... "temp"
      - Now, cd into the new temp directory (to tie it up)
      - Now, in a tclsh (actually, wish console window in 
      my case), try to
      rename the temp directory to "temp1"
      
      (jgodfrey) 8 % file rename -force -- temp temp1
      error renaming "temp" to "temp1": trying to rename 
      a volume or move a
      directory into itself
      (jgodfrey) 9 %
      
      "trying to move a directory into itself"?  Huh?  That 
      can't be
      right...
      
      - Now, try to rename temp to a name that doesn't 
      itself begin with
      "temp"...
      
      (jgodfrey) 9 % file rename -force -- temp newdir
      error renaming "temp" to "newdir": permission 
      denied
      (jgodfrey) 10 % 
      
      Ahhh, a more sensible message...
      
      The problem seems to be in "tclWinFCmd.c" in the 
      following code:
      
          src = Tcl_WinTCharToUtf((TCHAR *) 
      nativeSrcPath, -1, &srcString);
          dst = Tcl_WinTCharToUtf((TCHAR *) 
      nativeDstPath, -1, &dstString);
          if (strncmp(src, dst, (size_t) 
      Tcl_DStringLength(&srcString)) == 0) {
      /*
       * Trying to move a directory 
      into itself.
       */
      
      The source and destination are compared, but only 
      out to the length of the source string.  There seems 
      to be more needed in this check, although I'm not 
      sure what the "safest" fix is...
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "jgodfrey"
    9. subsystem initialized to: "17. Commands I-L"
    10. title initialized to: "WinNT - [file rename] incorrect error message"
    11. type initialized to: "Bug"
  2. Ticket change [738c3db2ff] (rid 105058) by dkf on 2003-06-02 22:08:25:

    1. assignee changed to: "vincentdarley"
    2. subsystem changed to: "37. File System"
  3. Ticket change [ad88b25ce4] (rid 101485) by dkf on 2003-06-02 22:09:00:

    1. foundin changed to: "obsolete: 8.4.2"
  4. Ticket change [3005c7db98] (rid 93176) by vincentdarley on 2003-06-02 22:59:32:

    1. closedate changed to: "2003-06-02T15:59:32"
    2. closer changed to: "vincentdarley"
    3. icomment:
      Logged In: YES 
      user_id=32170
      
      Fixed in cvs head.  Thanks!
      
      
      
    4. login: "vincentdarley"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "vincentdarley"