From ac8d65b4429512d6ba365b6d251f754776ec2fb2 Mon Sep 17 00:00:00 2001 From: Pat Thoyts Date: Thu, 22 Jan 2009 15:24:33 +0000 Subject: [PATCH] [Bug 2482573] improve handling of glob for tclprocvfs --- library/tclprocvfs.tcl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/tclprocvfs.tcl b/library/tclprocvfs.tcl index 4287eeb..99845fa 100644 --- a/library/tclprocvfs.tcl +++ b/library/tclprocvfs.tcl @@ -115,7 +115,8 @@ proc vfs::ns::matchindirectory {ns path actualpath pattern type} { set ns ::[string trim $ns :] set nspath ${ns}::${path} - set slash 1 + if {![namespace exists $nspath]} {return {}} + set slash 1 if {[::vfs::matchDirectories $type]} { # add matching directories to $res if {[string length $pattern]} { -- 2.23.0