Subject: Re: CVS commit: src/usr.sbin/lpr/lpd
To: matthew green <firstname.lastname@example.org>
From: Jaromir Dolecek <jdolecek@NetBSD.org>
Date: 11/27/2005 22:33:44
On Mon, Nov 28, 2005 at 08:27:31AM +1100, matthew green wrote:
> Log Message:
> the mktemp() use here is not OK, adjust comment
> how is it not safe?
There is a race between mktemp() call and actually creating the
temporaty file, isn't there? Both mktemp() usages are quite easily
convertible to mkstemp(), BTW.
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.NetBSD.cz/
-=- We can walk our road together if our goals are all the same; -=-
-=- We can run alone and free if we pursue a different aim. -=-