Overview
| Artifact ID: | 1d6d8b7a8e3af60f0571feb6fc0a274a0b038a27 |
|---|---|
| Ticket: | 928545ffffffffffffffffffffffffffffffffff
OSX: force rename |
| User & Date: | vincentdarley on 2004-04-05 06:17:12 |
Changes
- assignee changed to: "das"
- icomment:
Logged In: YES user_id=32170 Looking at the comments to TclpObjRenameFile, I see this: *If the directory was successfully created, returns TCL_OK. *Otherwise the return value is TCL_ERROR and errno is set to *indicate the error. Some possible values for errno are: * [snip] *EISDIR: dst is a directory, but src is not. This suggests that the blanket treatment of 'EISDIR' by an attempt to delete the directory and then fallback on copy/rename is likely to introduce new bugs. Another issue is that your patch doesn't check 'retVal != TCL_OK' before examining errno, which is likely to be wrong. Finally, another issue is that your patch undoubtedly leaks a Tcl_Obj in 'errorBuffer'. I think a better place to patch would be inside DoRenameFile. However, overall it seems we need to understand why the OS's "rename(src,dst)" is failing. Reassigning to someone with more understanding of OSX for help.
- login: "vincentdarley"
- mimetype: "text/plain"
- priority changed to: "5 Medium"
- title changed to: "OSX: force rename"
- username: "vincentdarley"