Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 81e1cc0f206fe13850d88f2d973a55a498b240d0
Ticket: 1379287fffffffffffffffffffffffffffffffff
TclFSNormalizeAbsolutePath() fails on /tmp/..
User & Date: georgeps on 2006-02-28 06:02:33
Changes

  1. icomment:
    Logged In: YES 
    user_id=585068
    
    from CdObjCmd -> FSChdir -> Tcl_FSGetNormalizedPath we find
    the failure I think.  pathPtr->bytes is ".." at the start.
    
    None of the code in Tcl_FSGetNormalizedPath that updates the
    ->normPathPtr used at the end is executed.  There is only
    one branch that is entered and that is this:
    
     if (fsPathPtr->cwdPtr != NULL) {
      ...
      if (...) { 
       [not executed]
      } else if (...) {
       [not executed]
      }
     }
     
    We then reach:
     return fsPathPtr->normPathPtr
    
    I added this before the return:
    printf ("fsPathPtr->normPathPtr '%s'\n",
    fsPathPtr->normPathPtr);
    
    which output this:
    fsPathPtr->normPathPtr ''
    
    So the normPathPtr should be updated by some code in
    Tcl_FSGetNormalizedPath based on my interpretation of the
    code and output.
    
    
  2. login: "georgeps"
  3. mimetype: "text/plain"
  4. username: "georgeps"