Artifacts Associated With Ticket 941108ffffffffffffffffffffffffffffffffff
Ticket change [48d1e88492] (rid 99960) by dgp on 2004-04-24 02:10:40:
- assignee initialized to: "vincentdarley"
- cmimetype initialized to: "text/plain"
- 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.
- foundin initialized to: "obsolete: 8.5a2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "37. File System"
- title initialized to: "TclpObjNormalizePath(unix) breaks VFS spec"
- type initialized to: "Bug"
Ticket change [c0bea30447] (rid 102466) by dgp on 2004-04-24 10:00:23:
- 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.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "941108.patch" [4edbebfab9] (rid 125717) by dgp on 2004-04-24 10:00:23.
Ticket change [712528d430] (rid 100622) by vincentdarley on 2004-04-26 22:15:23:
- assignee changed to: "dgp"
- icomment:
Logged In: YES user_id=32170 Please do commit the fix.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
Ticket change [057d83e70f] (rid 89073) by dgp on 2004-04-26 22:32:18:
- 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.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [a1779bfcdd] (rid 109715) by vincentdarley on 2004-04-26 22:40:34:
- 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.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [90ea4834f2] (rid 120536) by dgp on 2004-04-26 22:52:03:
- closedate changed to: "2004-04-26T15:52:03"
- closer changed to: "dgp"
- resolution changed to: "Fixed"
- status changed to: "Closed"