Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e3542a4054ba4dade716d1198653b36c43cb9e3edee61c1205c84aca03cd8420
Ticket: 951cd4cdfa7e1d4088a2bae732ecb39e190adcde
Do not add subdirectories to tcl::tm::list in safe interp
User & Date: kjnash on 2020-07-16 01:15:01
Changes

  1. comment changed to:
    The Safe Base ensures that a safe slave interpreter can use modules, by adding to the slave's access path the directories of the master's [tcl::tm::list], and all their descendants.  It should also set the safe interpreter's [tcl::tm::list] to a tokenized form of the master's value.  In fact it also adds tokens for the descendants.
    
    When a script requests module "b", this bug means in that in adverse circumstances the interpreter would receive module "a::b" instead.
    
    Fixed in branch safe-bugfixes-8-6 commit [081a8b9b50].  New test safe-9.20 checks for excess directories in [tcl::tm::list].
    
  2. login: "kjnash"
  3. mimetype: "text/plain"