Overview
| Artifact ID: | 346254f97cb0c23a79a22c4a1fe99eb65715cdb1 |
|---|---|
| Ticket: | 1219176fffffffffffffffffffffffffffffffff
file mkdir fails on existing directories |
| User & Date: | tngd on 2005-06-12 14:25:10 |
Changes
- assignee changed to: "vincentdarley"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "obsolete: 8.5a4"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "tngd"
- subsystem changed to: "37. File System"
- title changed to: "file mkdir fails on existing directories"
- type changed to: "Bug"