<i>Fix for race condition in unix/tclUnixPipe.c</i> status still Open with 4 other changes
by
.
D 2001-03-29T13:13:54
J icomment Logged\sIn:\sYES\s\nuser_id=124643\n\nIt\sis\sonly\sa\svery\stight\srace\scondition,\sbut\sit\sexists.\sIf\nsomeone\screates\sa\ssymlink\sin\sthe\stime\sbetween\stmpnam()\sand\nopen()\sthat\shas\sthe\ssame\sname\sas\sthe\stemporary\sfile\syou\sare\nabout\sto\sopen,\sthe\starget\sfile\sof\sthis\ssymlink\swill\sbe\ndeleted,\sif\sopen\sis\scalled\swith\sO_TRUNC.\n\nAdding\sO_NOFOLLOW\sinstead\sof\sreplacing\sO_TRUNC\swith\sO_EXCL\nmay\salso\shelp,\sbut\sseems\sto\sbe\sless\sportable.\n\nBTW,\sthe\smanpage\sof\stmpnam\ssays:\s\nBUGS\n\s\s\s\s\s\s\sNever\suse\sthis\sfunction.\sUse\smkstemp(3)\sinstead.\n\n
J login rmax
J mimetype text/plain
J username rmax
K 402924ffffffffffffffffffffffffffffffffff
U rmax
Z 5eb6d48b8b8223602bc487821ae324aa