Skip to content
Tcl Source Code Artifact [503319e7d3]
Login

Artifact [503319e7d3]

Artifact 503319e7d3ef84de6b0bd708ad87cbcc4af82064:

Ticket change [503319e7d3] - Ticket [219139ffffffffff|219139ffff] <i>file delete -force does not work on read-only directories</i> status still Open with 4 other changes by dkf on 2001-09-04 19:45:30.
D 2001-09-04T19:45:30
J icomment Logged\sIn:\sYES\s\nuser_id=79902\n\nIt\sstrikes\sme\sas\sodd\sthat\swe\shave\san\sopen\sfd\sfor\sthe\ntemporary\sfile\sand\sthen\swe\simmediately\sclose\sit\sonly\sto\nreopen\sit\sagain\s(as\spart\sof\scopying.)\s\sWouldn't\sit\sbe\sbetter\nto\schange\sTclpTempFileName()\sto\spass\sback\sboth\sthe\sname\sof\nthe\sfile\sand\sa\s(binary\sread-write)\schannel\swith\swhich\sto\naccess\sthe\sfile?\s\sOne\sof\sthe\sfaults\swith\susing\stmpnam()\sas\sI\nunderstand\sit\sis\sthat\syou\scan\shave\san\sattacker\screate\sthe\nfile\swith\ssome\snefarious\scontent\sin-between\sgetting\sthe\nfilename\s(of\sa\snon-existing-at-the-time\sfile)\sand\screating\nthe\sfile.\s\sIf\schanged\sto\sproduce\sboth\schannel\sand\sfilename,\nthen\sit\sis\sobvious\sthat\sthe\sname\sof\sthe\sfunction\sneeds\sto\nchange\sas\swell\s(to\sTclpCreateTempFile\sfor\sexample?)\n
J login dkf
J mimetype text/plain
J username dkf
K 219139ffffffffffffffffffffffffffffffffff
U dkf
Z 76b81aeae8b87f39dd496930ff87aa8a