Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 05570445f124d7b934fac014dc5a134fa8a806a1
Ticket: 1020538fffffffffffffffffffffffffffffffff
Problem in file copy
User & Date: dkf on 2004-09-03 15:47:44
Changes

  1. assignee changed to: "vincentdarley"
  2. icomment:
    Logged In: YES 
    user_id=79902
    
    Yuck. The problem is that the call to Tcl_FSFileAttrsSet()
    in CopyRenameOneFile() (in tclFCmd.c) passes in a NULL
    interp, but an error happened and we're trying to store the
    error message in a variable looked up from that NULL...
    
    Suggested fix: make SetPermissionsAttribute() in
    tclUnixFCmd.c only report an error when interp is non-NULL.
    For safety, we need to protect all three points that can
    generate error messages, probably with:
      if (interp != NULL) {
         Tcl_AppendResult(...);
      }
    
    Do you concur with my analysis, Vince?  I'm assigning back
    to you because 'cvs annotate' says you've poked around in
    relevant areas in both files...
    
    
  3. login: "dkf"
  4. mimetype: "text/plain"
  5. subsystem changed to: "24. Channel Commands"
  6. username: "dkf"