|
2020-12-31
| ||
| 16:00 | • Closed ticket [9ae5c553ca]: Remove unnecessary code in safe::AliasGlob - an old ... artifact: 57f21c9e4a user: kjnash | |
|
2020-07-18
| ||
| 18:54 | • New ticket [9ae5c553ca]. artifact: 7da4419f44 user: kjnash | |
Remove unnecessary code in safe::AliasGlob - an old fix for ~ expansion that is now fixed by other means
Closed / Fixed9ae5c553cadbac0097021593a77ea959e6b1aa76Created 6 years agoUpdated 6 years ago
Descriptionwiki2020-07-18 18:54:32
Command ::safe::AliasGlob gives special treatment to search patterns whose directory part is ~ or ~${foo}. In earlier versions of ::safe::AliasGlob, this was a fix for the problem of unwanted expansion of ~ that revealed home directories to a safe interpreter (bug [3529949]).
This special treatment of ~ is no longer necessary. In current Tcl,
file join $anything ~${foo}
has result "~${foo}", which does not match any directory in the access path, and so is rejected before being passed to the safe interpreter's hidden glob command.
Fixed in branch safe-bugfixes-8-6 commit [39485e00ef].
Tests safe-16.[5-8] have been added to check that [file join] continues to behave this way. Existing tests safe-16.[1-4] also check for unwanted ~ expansion.
kjnash Closed ticket [9ae5c553ca].
[History diff]2020-12-31 16:00:17
Log in (anonymous is fine) to add a comment.