Skip to content
Tcl Source Code History Of Ticket 941108ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 941108ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 941108ffffffffffffffffffffffffffffffffff

  1. Ticket change [48d1e88492] (rid 99960) by dgp on 2004-04-24 02:10:40:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      The Tcl_FSNormalizePathProc of a 
      Tcl_Filesystem gets three arguments,
      
        (TclInterp *interp,
         Tcl_Obj *pathPtr,
         int nextCheckPoint)
      
      and an int return value.
      
      It's spelled out in in the Tcl_Filesystem
      docs that both nextCheckPoint and
      the returned value should be indices
      into the pathPtr->bytes array and the
      value should point to either the start
      (0) the end (bytes[cp] == '\0') or
      to a separator character, usually '/'.
      
      The unix TclpObjNormalizePath()
      routine does not follow these rules;
      it returns a value that points "one past"
      the separator, not to it.
      
      The correction is simple, just remove
      lines 1805-1807 from unix/tclUnixFCmd.c
      Those lines incorrectly advance the
      checkpoint value one past where it
      ought to be.
      
      Removing those lines leads to no
      new failures in the test suite on three
      different unix systems I tried.
      
      
    4. foundin initialized to: "obsolete: 8.5a2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "37. File System"
    10. title initialized to: "TclpObjNormalizePath(unix) breaks VFS spec"
    11. type initialized to: "Bug"
  2. Ticket change [c0bea30447] (rid 102466) by dgp on 2004-04-24 10:00:23:

    1. icomment:
      
      
      File Added - 84878: 941108.patch
      
      Logged In: YES 
      user_id=80530
      
      
      Even better, in addition to removing
      those lines, it appears that 
      TclpObjNormalizePath can claim
      to have normalized the whole thing
      rather than just all but the final
      component via this patch.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Add attachment "941108.patch" [4edbebfab9] (rid 125717) by dgp on 2004-04-24 10:00:23.

  4. Ticket change [712528d430] (rid 100622) by vincentdarley on 2004-04-26 22:15:23:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=32170
      
      Please do commit the fix.
      
      
      
    3. login: "vincentdarley"
    4. mimetype: "text/plain"
    5. username: "vincentdarley"
  5. Ticket change [057d83e70f] (rid 89073) by dgp on 2004-04-26 22:32:18:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      which one?
      
      The additional access() call
      is helpful when there are
      other FS's registered, as it
      will let the native FS claim
      the entire path when it can.
      
      However, when there's only
      a native FS around, the
      additional access() call
      adds to the overhead of path
      normaliztaion.
      
      Intermingled with this is
      Bug 931847.  The plans
      for revising Tcl_FSNTUP
      might influence the choice.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [a1779bfcdd] (rid 109715) by vincentdarley on 2004-04-26 22:40:34:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      Oh yes, I would commit the simpler one now (no 'access'
      check), but consider adding the other check in place if/when
      the needs of the other discussions/fixes require it.
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  7. Ticket change [90ea4834f2] (rid 120536) by dgp on 2004-04-26 22:52:03:

    1. closedate changed to: "2004-04-26T15:52:03"
    2. closer changed to: "dgp"
    3. resolution changed to: "Fixed"
    4. status changed to: "Closed"