Overview
| Artifact ID: | 48d1e884925a2e645e50e39d291f575e8f4e184d |
|---|---|
| Ticket: | 941108ffffffffffffffffffffffffffffffffff
TclpObjNormalizePath(unix) breaks VFS spec |
| User & Date: | dgp on 2004-04-24 02:10:40 |
Changes
- assignee changed to: "vincentdarley"
- cmimetype changed to: "text/plain"
- comment changed 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.
- foundin changed to: "obsolete: 8.5a2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "37. File System"
- title changed to: "TclpObjNormalizePath(unix) breaks VFS spec"
- type changed to: "Bug"