Skip to content
Tcl Source Code Artifact [be207d07f7]
Login

Artifact [be207d07f7]

Artifact be207d07f720c3ccf260cf2891044d71fbeb867746b0829e9096df1fe658828f:

Attachment "patch-library_safe_tcl" to ticket [eb268f246f] added by stu on 2017-12-24 22:55:11.
$OpenBSD$

Index: library/safe.tcl
--- library/safe.tcl.orig
+++ library/safe.tcl
@@ -352,6 +352,8 @@ proc ::safe::InterpSetConfig {slave access_path static
 	    # Prevent the addition of dirs on the tm list to the
 	    # result if they are already known.
 	    if {[dict exists $remap_access_path $dir]} {
+		# The dir must nevertheless be added to the slave's tm_path.
+		lappend slave_tm_path [dict get $remap_access_path $dir]
 		continue
 	    }