Overview
| Artifact ID: | 7da4419f445f493be92548bad46b771d9838b502489d08d59dd38eb7d107fa8f |
|---|---|
| Ticket: | 9ae5c553cadbac0097021593a77ea959e6b1aa76
Remove unnecessary code in safe::AliasGlob - an old fix for ~ expansion that is now fixed by other means |
| User & Date: | kjnash on 2020-07-18 18:54:32 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
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, <verbatim> file join $anything ~${foo} </verbatim> 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. - foundin changed to: "core-8-6-branch"
- is_private changed to: "0"
- login: "kjnash"
- priority changed to: "5 Medium"
- private_contact changed to: "a774b1f5653dc3360e29ea7d635a64e94c9f1dab"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "kjnash"
- subsystem changed to: "33. Safe Base"
- title changed to:
Remove unnecessary code in safe::AliasGlob - an old fix for ~ expansion that is now fixed by other means
- type changed to: "Bug"