diff options
| author | donal.k.fellows@manchester.ac.uk <dkf> | 2000-11-24 13:56:40 (GMT) |
|---|---|---|
| committer | donal.k.fellows@manchester.ac.uk <dkf> | 2000-11-24 13:56:40 (GMT) |
| commit | b0b55f54c392f421b0eebe0a71bb0b71bc6fe2a7 (patch) | |
| tree | fc8289a7c6662231e84678043898e49a0e517fa4 /library/safe.tcl | |
| parent | 5947433bd567b01cc51718cd565496394e65c58c (diff) | |
| download | tcl-b0b55f54c392f421b0eebe0a71bb0b71bc6fe2a7.zip tcl-b0b55f54c392f421b0eebe0a71bb0b71bc6fe2a7.tar.gz tcl-b0b55f54c392f421b0eebe0a71bb0b71bc6fe2a7.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.tcl | 4 |
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 ! |
