Date: Fri, 6 Mar 1998 12:17:53 -0800 (PST) From: dima@best.net (Dima Ruban) To: guido@gvr.org (Guido van Rooij) Cc: dima@best.net, ache@nagual.pp.ru, guido@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-gnu@FreeBSD.ORG Subject: Re: cvs commit: src/gnu/usr.bin/sort sort.c Message-ID: <199803062017.MAA08880@burka.rdy.com> In-Reply-To: <199803062012.VAA13861@gvr.gvr.org> from Guido van Rooij at "Mar 6, 98 09:12:40 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Guido van Rooij writes: > > > > Maybe tempname() should check whether the file exsists, and if it does - > > generate a new temp filename? > > Fix is rather trivial. > > No. This will still give you an obvious race. Actually, sort.c should use > mkstemp(), but I did want to change as little as possible to the code. Or mkstemp() :-) > > -Guido > -- dima
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803062017.MAA08880>