Ben Reser <[EMAIL PROTECTED]> writes:

> On Tue, Feb 04, 2003 at 05:20:21PM +0100, Daouda LO wrote:
> > Yes the only constraints to use mkstemp is that the last 6 characters
> > of the target file should end with XXXXXX (to ensure the temporary
> > file will be unique).  I double checked this. Besides this, the patch
> > was stolen from Redhat :p
> 
> That and the mktemp function returns the file name.   While the mkstemp
> returns the file descriptor.  Making switching any program using it to
> be a non-trivial situation.  Because without changing the program you
> will run into a double open situation.
>
> 
> But I would presume RedHat knows this.

definately.

Reply via email to