Overview
| Artifact ID: | aa71c0b9e67a7f2be11e84db8e9f8f969fdbd49e |
|---|---|
| Ticket: | 931847ffffffffffffffffffffffffffffffffff
TclFSNormalizeToUniquePath - incomplete? |
| User & Date: | dgp on 2004-04-08 16:57:06 |
Changes
- assignee changed to: "vincentdarley"
- cmimetype changed to: "text/plain"
- comment changed to:
As I understand TclFSNormalizeToUniquePath() it's meant to force paths into one canonical form -- getting rid of symlinks, establishing the case in the filesystem, etc. To do this, it asks the filesystems to do the work, giving the native filesystems first try, then giving all the others a try, calling the Tcl_FSNormalizePathProc of each, if implemented. Each Tcl_FSNormalizePathProc(), though, might not be able to finish the job completely. The "startAt" value returned by TclFSNormalizeToUniquePath() might not point to the end of the returned string value of the path. This is fine, as long as the callers of TclFSNTUP() repeatedly call it until startAt is at the end of the string, or until nothing changes. It appears the existing callers of TclFSNTUP are calling only once, not checking the return value, and expecting TclFSNTUP to have done all the normalization possible. The alternative to changing the callers, is to rewrite TclFSNTUP itself to do what the callers appear to expect, keep looping over normalization attempts until they don't do any more, so the path is as normalized as possible. This bug is difficult to demostrate because it requires a non-native VFS that actually implements a Tcl_FSNormalizePathProc() that would produce a changed path that, say, the native filesystem could normalize further. For example, imagine chaining symlinks into and out of a non-native VFS.
- 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: "TclFSNormalizeToUniquePath - incomplete?"
- type changed to: "Bug"