Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. 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.
    
  5. foundin changed to: "core-8-6-branch"
  6. is_private changed to: "0"
  7. login: "kjnash"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "a774b1f5653dc3360e29ea7d635a64e94c9f1dab"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "kjnash"
  14. subsystem changed to: "33. Safe Base"
  15. title changed to:
    Remove unnecessary code in safe::AliasGlob - an old fix for ~ expansion that is now fixed by other means
    
  16. type changed to: "Bug"