Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7d0817c64af054555feb5a7e25d2cb6585028afb
Ticket: 1379287fffffffffffffffffffffffffffffffff
TclFSNormalizeAbsolutePath() fails on /tmp/..
User & Date: dgp on 2006-03-02 04:13:37
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    
    Within Tcl_FSGetNormalizedPath()
    at line 1830 of tclPathObj.c:
    
      Tcl_Obj *absolutePath = fsPathPtr->translatedPathPtr;
    
    The variable name "absolutePath" suggests
    the code expects that path to have
    pathtype TCL_PATH_ABSOLUTE.  In this example,
    that is not the case.  The value is "..",
    which has pathtype TCL_PATH_RELATIVE.  If
    the code does in fact depend on absolutePath
    being an absolutePath, then things are broken
    somewhere.  If it does not depend on that, then
    the variable name choice is poor.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"