Re: tmpnam vs mkstemp, was Re: [Exim] Problem with compiling…

Página Inicial
Delete this message
Reply to this message
Autor: Jim Knoble
Data:  
Para: exim-users
Assunto: Re: tmpnam vs mkstemp, was Re: [Exim] Problem with compiling exim-3.22 on Linux
Circa 2001-Mar-30 09:25:46 +0100 dixit Philip Hazel:

: On Fri, 30 Mar 2001, Jim Knoble wrote:
:
: > Two good ways to portably and securely create temporary files are:
:
: What is wrong with tmpfile()? (It is in the C standard.)

It's not guaranteed to be implemented so as to avoid race conditions.
For one take on this, see

http://www.linuxdoc.org/HOWTO/Secure-Programs-HOWTO/avoid-race.html

section 6.8.1.2 "Temporary Files".

--
jim knoble | jmknoble@??? | http://www.jmknoble.cx/