diff options
author | dgp <dgp@noemail.net> | 2008-12-03 06:36:04 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2008-12-03 06:36:04 (GMT) |
commit | 860884d570c5ab18aad4ff794f852b25ec65cc32 (patch) | |
tree | bce807685d653d5c7710d357f6d83ae87ca98ef6 /generic/tclFileName.c | |
parent | b59f6a4624eba04fa501825429a1e3c19529b593 (diff) | |
download | tcl-860884d570c5ab18aad4ff794f852b25ec65cc32.zip tcl-860884d570c5ab18aad4ff794f852b25ec65cc32.tar.gz tcl-860884d570c5ab18aad4ff794f852b25ec65cc32.tar.bz2 |
* generic/tclFileName.c (TclDoGlob): One of the
Tcl_FSMatchInDirectory() calls did not have its return code
checked. Some VFS drivers can return TCL_ERROR, and when that's
not checked, the error message gets converted into a list of
matching files returned by [glob], with ridiculous results.
FossilOrigin-Name: e3869039df07f37924f4286bff0e1ff3c1aa705c
Diffstat (limited to 'generic/tclFileName.c')
-rw-r--r-- | generic/tclFileName.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclFileName.c b/generic/tclFileName.c index 15c04d8..c14893f 100644 --- a/generic/tclFileName.c +++ b/generic/tclFileName.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclFileName.c,v 1.40.2.16 2008/08/13 17:59:06 dgp Exp $ + * RCS: @(#) $Id: tclFileName.c,v 1.40.2.17 2008/12/03 06:36:05 dgp Exp $ */ #include "tclInt.h" @@ -2662,10 +2662,10 @@ TclDoGlob(interp, separators, headPtr, tail, types) nameObj = Tcl_NewStringObj(name, Tcl_DStringLength(headPtr)); Tcl_IncrRefCount(nameObj); - Tcl_FSMatchInDirectory(interp, Tcl_GetObjResult(interp), nameObj, - NULL, types); + result = Tcl_FSMatchInDirectory(interp, Tcl_GetObjResult(interp), + nameObj, NULL, types); Tcl_DecrRefCount(nameObj); - return TCL_OK; + return result; } } |