Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f183aafe43010da17ef2a70def70dc3fceadd554
Ticket: 849514ffffffffffffffffffffffffffffffffff
Absolute pathnames with ../ and links
User & Date: vincentdarley on 2003-12-10 19:32:43
Changes

  1. icomment:
    Logged In: YES 
    user_id=32170
    
    The bug is quite clear now.  TclFSNormalizeAbsolutePath
    removes all '.' and '..' sequences before passing the path
    to the platform-specific normalization code. But, the '..'
    removal is done in a purely string-based way, with no
    awareness of symlinks at all.
    
    We probably need to remove that whole block of code (lines
    149-173 of tclPathObj.c) and make each platform-specific
    piece of code a bit cleverer.
    
    This might actually improve performance, since it would
    remove the need for a whole file split/file join pair in the
    current approach (but replace it with more complex
    platform-specific code).
    
    
    
  2. login: "vincentdarley"
  3. mimetype: "text/plain"
  4. username: "vincentdarley"