What Debian package is mktemp and tempfile a part of? And/or, is there a command I can issue on a debian system to find out what package a command or program belongs to?
Tom On 11/10/05, Justin Pryzby <[EMAIL PROTECTED]> wrote: > On Thu, Nov 10, 2005 at 08:02:51PM +0100, Marc Leeman wrote: > > > That is a tag + security race condition between rm and mkdir. You'll > > > want to use mktemp -d instead. > > fixed, tnx. > > > > > I didn't look at your script closely; there may be other problems. > > > Nothing should ever get written to /tmp/ except if the output filename > > > is the result of a successful ($?==0) call to mktemp or tempfile. > > > > But I can use /tmp/ to store the result of an archive (in a mktemp dir) > > if I remove it afterwards? > Right; You can also do whatever you want to a file whose name is > outputted by a successful invocation of mktemp, but note that this > probably wont play nice with wget. If fn=`mktemp`, and you wget -O > $fn, then wget will probably call its outupt $fn.1, since $fn exists > (as a requirement for this to be done safely way, it must be created > before the name is outputted). > > -- > Clear skies, > Justin > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- Main Entry: doy·en Pronunciation: 'doi-&n, -"(y)en; 'dwä-"yan(n) Function: noun 1 b : a person considered to be knowledgeable or uniquely skilled as a result of long experience in some field of endeavor