Overview
| Artifact ID: | 3aa6db4f3f00c03b9dd44961318a9668b0b695f8 |
|---|---|
| Ticket: | 999162ffffffffffffffffffffffffffffffffff
TIP#210: Add tempname subcommand to file |
| User & Date: | matzek on 2008-11-22 00:19:31 |
Changes
- icomment:
I think there is no need to go into C level. Have a look at tcllibs ::fileutil::tempfile for Tcl only implementation that's fine with regard to race conditions and security. Please stay away from tmpnam() and friends. Consider: * http://cwe.mitre.org/data/definitions/377.html * https://buildsecurityin.us-cert.gov/daisy/bsi-rules/home/g1/861-BSI.html mkstemp() is the only way to go at C-Level... kind regards -- Matthias Kraft
- login: "matzek"
- mimetype: "text/plain"
- username: "matzek"