Overview
| Artifact ID: | f183aafe43010da17ef2a70def70dc3fceadd554 |
|---|---|
| Ticket: | 849514ffffffffffffffffffffffffffffffffff
Absolute pathnames with ../ and links |
| User & Date: | vincentdarley on 2003-12-10 19:32:43 |
Changes
- icomment:
Logged In: YES user_id=32170 The bug is quite clear now. TclFSNormalizeAbsolutePath removes all '.' and '..' sequences before passing the path to the platform-specific normalization code. But, the '..' removal is done in a purely string-based way, with no awareness of symlinks at all. We probably need to remove that whole block of code (lines 149-173 of tclPathObj.c) and make each platform-specific piece of code a bit cleverer. This might actually improve performance, since it would remove the need for a whole file split/file join pair in the current approach (but replace it with more complex platform-specific code).
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"