summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFile.c
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley@noemail.net>2004-01-29 10:28:17 (GMT)
committervincentdarley <vincentdarley@noemail.net>2004-01-29 10:28:17 (GMT)
commit7d8f26303b37b580b38e0d8366c677a344e2adb2 (patch)
treebc4f25a47a8614d6ef6beed61ae233eb487c80df /unix/tclUnixFile.c
parent67ea1692eb5e64a20344a399b09f1ca644892afd (diff)
downloadtcl-7d8f26303b37b580b38e0d8366c677a344e2adb2.zip
tcl-7d8f26303b37b580b38e0d8366c677a344e2adb2.tar.gz
tcl-7d8f26303b37b580b38e0d8366c677a344e2adb2.tar.bz2
filesystem fixes for '-force' consistency and picky compilers
FossilOrigin-Name: fff97fe11686fd45ff17aebdd91fb6c89fd9498a
Diffstat (limited to 'unix/tclUnixFile.c')
-rw-r--r--unix/tclUnixFile.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c
index 23837a0..76ffc32 100644
--- a/unix/tclUnixFile.c
+++ b/unix/tclUnixFile.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUnixFile.c,v 1.37 2004/01/21 19:59:34 vincentdarley Exp $
+ * RCS: @(#) $Id: tclUnixFile.c,v 1.38 2004/01/29 10:28:23 vincentdarley Exp $
*/
#include "tclInt.h"
@@ -210,6 +210,11 @@ TclpMatchInDirectory(interp, resultPtr, pathPtr, pattern, types)
CONST char *native;
Tcl_Obj *fileNamePtr;
+ if (types != NULL && types->type == TCL_GLOB_TYPE_MOUNT) {
+ /* The native filesystem never adds mounts */
+ return TCL_OK;
+ }
+
fileNamePtr = Tcl_FSGetTranslatedPath(interp, pathPtr);
if (fileNamePtr == NULL) {
return TCL_ERROR;