summaryrefslogtreecommitdiffstats
path: root/library/safe.tcl
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2000-11-24 13:56:40 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2000-11-24 13:56:40 (GMT)
commitb3278ac1c032713c88c6f082112ce0f9c7d2588b (patch)
treefc8289a7c6662231e84678043898e49a0e517fa4 /library/safe.tcl
parentb73b1c556f3fc06f2967f1ccf13d7521ca6324fc (diff)
downloadtcl-b3278ac1c032713c88c6f082112ce0f9c7d2588b.zip
tcl-b3278ac1c032713c88c6f082112ce0f9c7d2588b.tar.gz
tcl-b3278ac1c032713c88c6f082112ce0f9c7d2588b.tar.bz2
[glob] uses -directory instead of unsafe [file join] to stop problems
with some directory names. Fixes Bug #123313 in Tcl.
Diffstat (limited to 'library/safe.tcl')
-rw-r--r--library/safe.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/safe.tcl b/library/safe.tcl
index a929653..6d4c41b 100644
--- a/library/safe.tcl
+++ b/library/safe.tcl
@@ -12,7 +12,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: safe.tcl,v 1.6 1999/08/19 02:59:40 hobbs Exp $
+# RCS: @(#) $Id: safe.tcl,v 1.7 2000/11/24 13:56:40 dkf Exp $
#
# The implementation is based on namespaces. These naming conventions
@@ -496,7 +496,7 @@ proc ::safe::interpAddToAccessPath {slave path} {
if {[lsearch -exact $res $dir]<0} {
lappend res $dir
}
- foreach sub [glob -nocomplain -- [file join $dir *]] {
+ foreach sub [glob -directory $dir -nocomplain *] {
if {([file isdirectory $sub]) \
&& ([lsearch -exact $res $sub]<0) } {
# new sub dir, add it !