diff options
author | andreas_kupries <andreas_kupries@noemail.net> | 2010-09-02 04:53:34 (GMT) |
---|---|---|
committer | andreas_kupries <andreas_kupries@noemail.net> | 2010-09-02 04:53:34 (GMT) |
commit | 84b52c1afe8fd2372712edc04f84e057f5ddbbe7 (patch) | |
tree | 4667d29fe14427abc87796ef104b4063011766d8 /library/safe.tcl | |
parent | 7e420b11eca772f8dd74b8f5b236872251dc8002 (diff) | |
download | tcl-84b52c1afe8fd2372712edc04f84e057f5ddbbe7.zip tcl-84b52c1afe8fd2372712edc04f84e057f5ddbbe7.tar.gz tcl-84b52c1afe8fd2372712edc04f84e057f5ddbbe7.tar.bz2 |
* library/safe.tcl (::safe::AliasGlob): Moved the command
extending the actual glob command with a -directory flag to when
we actually have a proper untranslated path,
FossilOrigin-Name: 887af403c7ac77b8d1254792e3259fd92a12c204
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 81b53b4..27f9d92 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.39 2010/08/18 13:31:55 dkf Exp $ +# RCS: @(#) $Id: safe.tcl,v 1.40 2010/09/02 04:53:34 andreas_kupries Exp $ # # The implementation is based on namespaces. These naming conventions are @@ -708,7 +708,6 @@ proc ::safe::AliasGlob {slave args} { set got($opt) 1 set virtualdir [lindex $args [incr at]] incr at - lappend cmd -directory $dir } pkgIndex.tcl { # Oops, this is globbing a subdirectory in regular package @@ -742,6 +741,7 @@ proc ::safe::AliasGlob {slave args} { } return -code error "permission denied" } + lappend cmd -directory $dir } # Apply the -join semantics ourselves |