Overview
| Artifact ID: | 78c14e40c5b81bb157dd23fc1c0264e343bdd6ba |
|---|---|
| Ticket: | 878333ffffffffffffffffffffffffffffffffff
workaround for buggy(??) mkstemp() on IRIX systems |
| User & Date: | jenglish on 2004-02-21 06:10:37 |
Changes
- icomment:
Logged In: YES user_id=68433 This looks more like a bug in TclpTempFileName() -- it calls mkstemp() to generate a temporary file, but then deletes the file and closes the file descriptor. So a subsequent call to mkstemp() can use the same filename, as it's still unique. As a matter of fact, TclpTempFileName() is Broken As Designed: there is no safe way to generate a temporary file name without creating the file at the same time; otherwise you suffer a race condition.
- login: "jenglish"
- mimetype: "text/plain"
- username: "jenglish"