Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: aa71c0b9e67a7f2be11e84db8e9f8f969fdbd49e
Ticket: 931847ffffffffffffffffffffffffffffffffff
TclFSNormalizeToUniquePath - incomplete?
User & Date: dgp on 2004-04-08 16:57:06
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    As I understand
    TclFSNormalizeToUniquePath()
    it's meant to force paths into
    one canonical form -- getting
    rid of symlinks, establishing
    the case in the filesystem, etc.
    To do this, it asks the filesystems
    to do the work, giving the native
    filesystems first try, then giving all
    the others a try, calling the
    Tcl_FSNormalizePathProc of
    each, if implemented.
    
    Each Tcl_FSNormalizePathProc(),
    though, might not be able to finish
    the job completely.  The "startAt"
    value returned by TclFSNormalizeToUniquePath()
    might not point to the end of the
    returned string value of the path.
    
    This is fine, as long as the callers
    of TclFSNTUP() repeatedly call
    it until startAt is at the end of the string,
    or until nothing changes.  It appears
    the existing callers of TclFSNTUP
    are calling only once, not checking
    the return value, and expecting
    TclFSNTUP to have done all the
    normalization possible.
    
    The alternative to changing the callers,
    is to rewrite TclFSNTUP itself to do
    what the callers appear to expect,
    keep looping over normalization
    attempts until they don't do any more,
    so the path is as normalized as possible.
    
    This bug is difficult to demostrate
    because it requires a non-native VFS
    that actually implements a
    Tcl_FSNormalizePathProc() that
    would produce a changed path that,
    say, the native filesystem could
    normalize further.  For example,
    imagine chaining symlinks into
    and out of a non-native VFS.
    
  4. foundin changed to: "obsolete: 8.5a2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "37. File System"
  10. title changed to: "TclFSNormalizeToUniquePath - incomplete?"
  11. type changed to: "Bug"