Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 503319e7d3ef84de6b0bd708ad87cbcc4af82064
Ticket: 219139ffffffffffffffffffffffffffffffffff
file delete -force does not work on read-only directories
User & Date: dkf on 2001-09-04 19:45:30
Changes

  1. icomment:
    Logged In: YES 
    user_id=79902
    
    It strikes me as odd that we have an open fd for the
    temporary file and then we immediately close it only to
    reopen it again (as part of copying.)  Wouldn't it be better
    to change TclpTempFileName() to pass back both the name of
    the file and a (binary read-write) channel with which to
    access the file?  One of the faults with using tmpnam() as I
    understand it is that you can have an attacker create the
    file with some nefarious content in-between getting the
    filename (of a non-existing-at-the-time file) and creating
    the file.  If changed to produce both channel and filename,
    then it is obvious that the name of the function needs to
    change as well (to TclpCreateTempFile for example?)
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. username: "dkf"