Overview
| Artifact ID: | ef1fbaa3cdac7d5c11fe0943165867fbd37d729c |
|---|---|
| Ticket: | 2372314fffffffffffffffffffffffffffffffff
TIP 210 security |
| User & Date: | dkf on 2008-12-02 16:09:13 |
Changes
- closedate changed to: "2008-12-02T09:09:13"
- closer changed to: "dkf"
- icomment:
The FD returned by mkstemp() is the one that gets formed into a Tcl_Channel. But if you're creating a temporary file to use with an external API that requires a filename (they exist, alas) then you have to be able to get the filename as well. This is why the result of [file tempfile] is a channel name and you're allowed to give a variable name to get the filename if you want. Of slightly more concern is the fact that we may use the filename internally before returning to the script level (to unlink the file so it will get cleaned up on close) but I'm not sure what to do about that. Improvements welcome.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Pending"
- username: "dkf"