Skip to content
Tcl Source Code History Of Ticket 999162ffffffffff
Login

History Of Ticket 999162ffffffffff

Artifacts Associated With Ticket 999162ffffffffff

  1. Ticket change [0f601fec48] (rid 94779) by techentin on 2004-07-28 05:13:25:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      This patch adds a new tempname subcommand to the file command.
      
      The patch changes generic/tclCmdAH.c and generic/tclFCmd.c, adding a new command and function, which essentially calls the ANSI function tmpnam().
      
      Changes to the file.n man page and test suite are included.
      
      The Linux Programmer's Manual (Linux man pages) isn't very flattering towards tmpnam().  It basically says to use mkstemp() instead, but that function is POSIX instead of ANSI C.
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "techentin"
    9. subsystem initialized to: "16. Commands A-H"
    10. title initialized to: "Add file tempname"
    11. type initialized to: "Patch"
  2. Add attachment "file-tempname.patch" [c23012c7b6] (rid 111450) by techentin on 2004-07-28 12:13:25.

  3. Ticket change [948b0b2d38] (rid 106002) by techentin on 2004-07-28 12:13:26:

    1. icomment:
      
      
      File Added - 95502: file-tempname.patch
      
      
      
    2. login: "techentin"
    3. mimetype: "text/plain"
    4. username: "techentin"
  4. Ticket change [cc02bfaff2] (rid 95617) by techentin on 2004-07-28 12:14:54:

    1. title changed to: "Add tempname subcommand to file command"
  5. Ticket change [1852ed8bef] (rid 122640) by dkf on 2004-08-04 17:05:59:

    1. foundin changed to: "TIP Implementation"
  6. Ticket change [9b90982cbc] (rid 111151) by dkf on 2004-10-28 19:39:48:

    1. title changed to: "TIP#210: Add tempname subcommand to file"
  7. Ticket change [e79f3a23ae] (rid 104496) by dkf on 2008-11-20 17:29:46:

    1. icomment:
      Need to update to use mkstemp() or something like that.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  8. Ticket change [3aa6db4f3f] (rid 112595) by matzek on 2008-11-22 00:19:31:

    1. 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
      
      
      
    2. login: "matzek"
    3. mimetype: "text/plain"
    4. username: "matzek"
  9. Ticket change [82308c51b0] (rid 117189) by dkf on 2008-11-30 01:24:22:

    1. closedate changed to: "2008-11-29T18:24:22"
    2. closer changed to: "dkf"
    3. icomment:
      Implemented.
      
      At C level, we're using mkstemps() or mkstemp() on Unix, and something fairly horrible on Win (which still has the right security properties).
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"