[3850] in bugtraq

home help back first fref pref prev next nref lref last post

Re: mktemp() and friends

daemon@ATHENA.MIT.EDU (Uriel Maimon)
Mon Dec 23 17:37:42 1996

Date: 	Mon, 23 Dec 1996 23:39:55 +0200
Reply-To: Uriel Maimon <lifesux@cox.org>
From: Uriel Maimon <lifesux@cox.org>
To: Multiple recipients of list BUGTRAQ <BUGTRAQ@NETSPACE.ORG>
In-Reply-To:  <199612232050.PAA21667@netspace.org>

I for one liked the sendmail safefopen().
I think it's the most thorough soloution for race conditions I have seen
so far. Feel free to correct me.

        Uriel

> open("/tmp/filename", O_CREAT|O_EXCL) is what I'd like to see used and what I
> think that interface should use (this provides an open file descriptor
> or -1 if the file is already there, no symbolic link races, etc).  I don't
> know if it does or doesn't, but it should.

home help back first fref pref prev next nref lref last post