Overview
| Artifact ID: | 135181ae77ec78b03342a9ada38f404e4ce29502 |
|---|---|
| Ticket: | 453512ffffffffffffffffffffffffffffffffff
tmpnam() is dangerous |
| User & Date: | dkf on 2001-09-03 21:54:14 |
Changes
- icomment:
Logged In: YES user_id=79902 Apparently mkstemp() modifies its string 'template' argument to be the file that it has opened for you, though the documentation (on Solaris) is not particularly clear on this point (but experiment confirms it.) Maybe it is possible to bodge a fix like that? (The permissions on the temporary file seem sensible too, and /tmp is usually configured to be difficult for someone to compromise *too* much.)
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"