Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Mar 1998 21:12:40 +0100 (MET)
From:      Guido van Rooij <guido@gvr.org>
To:        dima@best.net
Cc:        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:  <199803062012.VAA13861@gvr.gvr.org>
In-Reply-To: <199803061957.LAA08710@burka.rdy.com> from Dima Ruban at "Mar 6, 98 11:57:41 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 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.

-Guido

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803062012.VAA13861>