|
2011-08-25
| ||
| 22:20 | • Ticket [3185623fff] Tcl treatment of ".." as path separator differs fr... artifact: 863b589360 user: apnadkarni | |
| 22:20 | • Ticket [3185623fff]: 4 changes artifact: cf97a0527e user: apnadkarni | |
|
2011-02-18
| ||
| 08:58 | • New ticket [3185623fff]. artifact: 7723928565 user: apnadkarni | |
Tcl treatment of ".." as path separator differs from Windows
Open3185623fffffffffffffffffffffffffffffffffCreated 16 years agoUpdated 15 years ago
Descriptionplain2011-02-18 08:58:02
While debugging a related bug - 3185609 - I discovered the following issue. Windows treats path components containing only "." differently from Tcl. If a path component contains more than 2 dots, Windows treats this the same as a single "." so c:/foo/bar/... (three dots in last component), is the same as c:/foo/bar/. Tcl, on the other hand, treats the path as a valid path with the tail being "...". This is what gets cached as the "normalized path" in various fields in the FSPathObj. Not sure what the external ramifications are (for example, code that compares paths after normalization would not result the same result as Windows) and it's a corner case anyways (Only happened to type in ... instead of .. by mistake) but just recording this inconsistency in case there might be bigger ramifications (security?) that I haven't thought of.
apnadkarniplain2011-08-25 22:20:56
Reassigned as per instruction from dgp
apnadkarni Ticket [3185623fff]: 1 change
[History diff]2011-08-25 22:20:57
Log in (anonymous is fine) to add a comment.