Artifacts Associated With Ticket 1219176fffffffffffffffffffffffffffffffff
Ticket change [346254f97c] (rid 106757) by tngd on 2005-06-12 14:25:10:
- assignee initialized to: "vincentdarley"
- cmimetype initialized to: "text/plain"
- comment initialized to:
System: WinXP, Tcl/Tk 8.5 CVS (current), Mingw gcc 3.4.2 i get these problems when creating absolute directories: % file mkdir . <-- no error here % file mkdir c:/ can't create directory "c:/": permission denied % file mkdir c:/windows can't create directory "c:/": permission denied % file mkdir c:/w can't create directory "c:/": permission denied % file mkdir /home can't create directory "/": permission denied In function TclFileMakeDirsCmd (tclFCmd.c:222) it checks if the destination target exists, and if it is not a directory, it will attempt to create it. But, if it does exist and is a directory it will still call Tcl_FSCreateDirectory. patch is attached with proposed fix (which seems reasonable to me). I havent tested it on other platforms (no idea if it has any impact on symlinks since i did not look inside function Tcl_FSCreateDirectory.
- foundin initialized to: "obsolete: 8.5a4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "tngd"
- subsystem initialized to: "37. File System"
- title initialized to: "file mkdir fails on existing directories"
- type initialized to: "Bug"
Ticket change [bc5c907a71] (rid 101735) by tngd on 2005-06-12 21:25:10:
- icomment:
File Added - 138093: tclFCmd.c.diff
- login: "tngd"
- mimetype: "text/plain"
- username: "tngd"
- icomment:
Add attachment "tclFCmd.c.diff" [0444cb74bb] (rid 119968) by tngd on 2005-06-12 21:25:10.
Ticket change [6dc4a29866] (rid 128755) by vincentdarley on 2005-06-13 15:32:25:
- closedate changed to: "2005-06-13T08:32:25"
- closer changed to: "vincentdarley"
- icomment:
Logged In: YES user_id=32170 Fixed this, and made sure tests pass correctly. Also added more comments so code paths are clearer.
- login: "vincentdarley"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "vincentdarley"