summaryrefslogtreecommitdiffstats
path: root/generic/tclFileName.c
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2009-08-21 19:03:19 (GMT)
committerdgp <dgp@noemail.net>2009-08-21 19:03:19 (GMT)
commit9d6672d03bf4839daf0a21c6ebcc385810d8409d (patch)
treea40e37174aef71683df6e5c809ca1548087e4d27 /generic/tclFileName.c
parent1f1435f8d0623cd759d9c0f08dc57bc4cb3c129f (diff)
downloadtcl-9d6672d03bf4839daf0a21c6ebcc385810d8409d.zip
tcl-9d6672d03bf4839daf0a21c6ebcc385810d8409d.tar.gz
tcl-9d6672d03bf4839daf0a21c6ebcc385810d8409d.tar.bz2
* generic/tclFileName.c: Correct regression in [Bug 2837800] fix.
* tests/fileName.test: FossilOrigin-Name: 06b3699815a5e463575557a62a3cedff0e59eff8
Diffstat (limited to 'generic/tclFileName.c')
-rw-r--r--generic/tclFileName.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclFileName.c b/generic/tclFileName.c
index b2d43b9..893f68c 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.86.2.3 2009/08/20 22:08:03 dgp Exp $
+ * RCS: @(#) $Id: tclFileName.c,v 1.86.2.4 2009/08/21 19:03:20 dgp Exp $
*/
#include "tclInt.h"
@@ -2358,7 +2358,7 @@ DoGlob(
for (i=0; result==TCL_OK && i<subdirc; i++) {
Tcl_Obj *copy = NULL;
- if (Tcl_GetString(subdirv[i])[0] == '~') {
+ if (pathPtr == NULL && Tcl_GetString(subdirv[i])[0] == '~') {
Tcl_ListObjLength(NULL, matchesObj, &repair);
copy = subdirv[i];
subdirv[i] = Tcl_NewStringObj("./", 2);