diff options
author | dgp <dgp@users.sourceforge.net> | 2008-06-25 17:18:42 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2008-06-25 17:18:42 (GMT) |
commit | 30e9d448eb8739e9d2218d88fc6c05afcc4aada6 (patch) | |
tree | 5ae7dc1ecc60d22f388807fa89a1b9d8ce69fcc5 /library/tm.tcl | |
parent | f20a9319d8aa59061754469b303da6624e44dcb6 (diff) | |
download | tcl-30e9d448eb8739e9d2218d88fc6c05afcc4aada6.zip tcl-30e9d448eb8739e9d2218d88fc6c05afcc4aada6.tar.gz tcl-30e9d448eb8739e9d2218d88fc6c05afcc4aada6.tar.bz2 |
* generic/tcl.h: Bump to 8.5.3 for release.
* library/init.tcl:
* tools/tcl.wse.in:
* unix/configure.in:
* unix/tcl.spec:
* win/configure.in:
* unix/configure: autoconf-2.59
* win/configure:
* changes: Update for 8.5.3 release.
* library/tm.tcl: Modified the handling of Tcl Modules and of the
* library/safe.tcl: Safe Base to interact nicely with each other,
* library/init.tcl: enabling requiring Tcl Modules in safe
* tests/safe.test: interpreters. Fixes [Bug 1999119].
Diffstat (limited to 'library/tm.tcl')
-rw-r--r-- | library/tm.tcl | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/library/tm.tcl b/library/tm.tcl index aee74f5..4f58d12 100644 --- a/library/tm.tcl +++ b/library/tm.tcl @@ -214,11 +214,11 @@ proc ::tcl::tm::UnknownHandler {original name args} { set satisfied 0 foreach path $paths { - if {![file exists $path]} { + if {![interp issafe] && ![file exists $path]} { continue } set currentsearchpath [file join $path $pkgroot] - if {![file exists $currentsearchpath]} { + if {![interp issafe] && ![file exists $currentsearchpath]} { continue } set strip [llength [file split $path]] @@ -352,9 +352,13 @@ proc ::tcl::tm::roots {paths} { foreach pa $paths { set p [file join $pa tcl$major] for {set n $minor} {$n >= 0} {incr n -1} { - path add [file normalize [file join $p ${major}.${n}]] + set px [file join $p ${major}.${n}] + if {![interp issafe]} { set px [file normalize $px] } + path add $px } - path add [file normalize [file join $p site-tcl]] + set px [file join $p site-tcl] + if {![interp issafe]} { set px [file normalize $px] } + path add $px } return } @@ -362,4 +366,4 @@ proc ::tcl::tm::roots {paths} { # Initialization. Set up the default paths, then insert the new # handler into the chain. -::tcl::tm::Defaults +if {![interp issafe]} { ::tcl::tm::Defaults } |