Skip to content
Tcl Source Code Artifact [1d6d8b7a8e]
Login

Artifact [1d6d8b7a8e]

Artifact 1d6d8b7a8e3af60f0571feb6fc0a274a0b038a27:

Ticket change [1d6d8b7a8e] - Ticket [928545ffffffffff|928545ffff] <i>OSX: force rename</i> status still Open with 7 other changes by vincentdarley on 2004-04-05 06:17:12.
D 2004-04-05T06:17:12
J assignee das
J icomment Logged\sIn:\sYES\s\nuser_id=32170\n\nLooking\sat\sthe\scomments\sto\sTclpObjRenameFile,\sI\ssee\sthis:\n\n\s*If\sthe\sdirectory\swas\ssuccessfully\screated,\sreturns\sTCL_OK.\n\s*Otherwise\sthe\sreturn\svalue\sis\sTCL_ERROR\sand\serrno\sis\sset\sto\n\s*indicate\sthe\serror.\s\sSome\spossible\svalues\sfor\serrno\sare:\n\s*\n[snip]\n\s*EISDIR:\s\s\s\sdst\sis\sa\sdirectory,\sbut\ssrc\sis\snot.\n\nThis\ssuggests\sthat\sthe\sblanket\streatment\sof\s'EISDIR'\sby\san\nattempt\sto\sdelete\sthe\sdirectory\sand\sthen\sfallback\son\ncopy/rename\sis\slikely\sto\sintroduce\snew\sbugs.\n\nAnother\sissue\sis\sthat\syour\spatch\sdoesn't\scheck\s'retVal\s!=\nTCL_OK'\sbefore\sexamining\serrno,\swhich\sis\slikely\sto\sbe\swrong.\n\nFinally,\sanother\sissue\sis\sthat\syour\spatch\sundoubtedly\sleaks\na\sTcl_Obj\sin\s'errorBuffer'.\s\sI\sthink\sa\sbetter\splace\sto\spatch\nwould\sbe\sinside\sDoRenameFile.\s\s\n\nHowever,\soverall\sit\sseems\swe\sneed\sto\sunderstand\swhy\sthe\sOS's\n"rename(src,dst)"\sis\sfailing.\s\sReassigning\sto\ssomeone\swith\nmore\sunderstanding\sof\sOSX\sfor\shelp.\n\n\n\n
J login vincentdarley
J mimetype text/plain
J priority 5\sMedium
J title OSX:\sforce\srename
J username vincentdarley
K 928545ffffffffffffffffffffffffffffffffff
U vincentdarley
Z c50027dbb65f0d2c4b0a93d4d52510d5