apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@covalent.net>
Subject Re: [PATCH] apr_file_mktemp should APR_CREATE the tmp file
Date Fri, 18 Jan 2002 21:02:40 GMT
From: "Justin Erenkrantz" <jerenkrantz@ebuilt.com>
Sent: Friday, January 18, 2002 1:22 PM

> Yeah, I agree that it is different, but I'm not entirely sure that 
> it is the wrong thing to do.  I think if you have a temp-file, you 
> want to delete it by *default*.  Since a user can override those
> flags, I think it's NBD as well.  -- justin

IIRC... you can add the DELONCLOSE flag, but you cannot _UNDO_ flags
you didn't want.  We need to remove the DELONCLOSE flag and let the
user pass it, if they want to always blast the file on close.

Temp files aren't always the lifetime of a single open command.  And
the mktemp file is often used to create permanant, unique files.


View raw message