[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Temporary file policy

On Fri, 12 Sep 1997, Guy Maor wrote:

> As Topi has filed another slew of bugs regarding careless use of
> temporary files, I decided I had better make the new temporary file
> policy better known.
> A new command, tempfile(1), was added to debianutils 1.6.  tempfile
> creates a temporary file in a safe manner.  It uses tempnam(3) and
> allows you to specify the directory, prefix, and mode.  For example,
> you can use it like this:

If memory serves, the OpenBSD folks also have created a similar command
for safely opening temporary files within shell scripts. We might want to
look into what they've done... IMHO, it's be kinda bad to have as many
tempfile-ish commands (each with a different syntax) as there are Unix
varieties. Or was tempfile taken from the OpenBSD folks? (I only have
email access, so I can't check it out myself.)


PS I'm not subscribed to debian-devel since I don't have access to email
filtering tools here. Please Cc to me if you want me to read your answer.

TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .

Reply to: