Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1becef7034499fe7ba42f21fc28b1e6cff7fc732
Ticket: 1100671fffffffffffffffffffffffffffffffff
Hard-coded attribute number for -permissions
User & Date: coldstore on 2005-01-12 05:45:41
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    tclFCmd.c line 539 in CopyRenameOneFile:
    Tcl_FSFileAttrsSet(NULL, 2, target, perm);
    tclIOUtil.c line 2980 in TclLoadFile:
    Tcl_FSFileAttrsSet(NULL, 2, copyToPtr, perm);
    
    Both assume that the -permissions file attribute has
    index 2 in the filesystem destination of the copy
    operation.
    
    This is only guaranteed to be the case for Unix native
    filesystems, as far as I can tell, and it completely
    ignores the attribute string table returned by the vfs
    layer for this file system.
    
    Either the index should be generated from the attribute
    string table, or it should be somewhere documented that
    attribute index 2 *must* be -permissions if you intend
    to use [file copy] over the vfs.
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "coldstore"
  9. subsystem changed to: "37. File System"
  10. title changed to: "Hard-coded attribute number for -permissions"
  11. type changed to: "Bug"