Subject: mkstemp() bug
To: None <current-users@NetBSD.ORG>
From: Trouble Free RecepPFFFFFFFFFFFFFFFF <>
List: current-users
Date: 07/17/1996 13:54:30
There is a problem with mkstemp().  While it avoids the race condition
(or so it says), it also leaves the temp file around with no way of tracing
it back to unlink it.

I would propose that _gettemp(), if it is called from mkstemp(), unlink()
the file immediately upon a successful open().

If you want to explicitly save the file, open another file explicitly
and copy it before you exit.

"Your chief has even inscribed his name on the sole of my boot."