Artifacts Associated With Ticket 747575ffffffffffffffffffffffffffffffffff
Ticket change [49371573a6] (rid 100024) by jgodfrey on 2003-06-02 15:01:30:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- 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... - foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "jgodfrey"
- subsystem initialized to: "17. Commands I-L"
- title initialized to: "WinNT - [file rename] incorrect error message"
- type initialized to: "Bug"
Ticket change [738c3db2ff] (rid 105058) by dkf on 2003-06-02 22:08:25:
- assignee changed to: "vincentdarley"
- subsystem changed to: "37. File System"
Ticket change [ad88b25ce4] (rid 101485) by dkf on 2003-06-02 22:09:00:
- foundin changed to: "obsolete: 8.4.2"
Ticket change [3005c7db98] (rid 93176) by vincentdarley on 2003-06-02 22:59:32:
- closedate changed to: "2003-06-02T15:59:32"
- closer changed to: "vincentdarley"
- icomment:
Logged In: YES user_id=32170 Fixed in cvs head. Thanks!
- login: "vincentdarley"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "vincentdarley"