summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFCmd.c
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley@noemail.net>2001-09-28 11:10:55 (GMT)
committervincentdarley <vincentdarley@noemail.net>2001-09-28 11:10:55 (GMT)
commitb0afbce839d8c56d4af2ea91980fdc87a64ba254 (patch)
treeac71695978289a7c8aab3987c2ba9f64896f49d5 /unix/tclUnixFCmd.c
parent5cf885af4701cd916baf0feb32bdb2f139ee900b (diff)
downloadtcl-b0afbce839d8c56d4af2ea91980fdc87a64ba254.zip
tcl-b0afbce839d8c56d4af2ea91980fdc87a64ba254.tar.gz
tcl-b0afbce839d8c56d4af2ea91980fdc87a64ba254.tar.bz2
normalize fix
FossilOrigin-Name: 32c5860d49bad913562a0e21753cd668f8a5088a
Diffstat (limited to 'unix/tclUnixFCmd.c')
-rw-r--r--unix/tclUnixFCmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclUnixFCmd.c b/unix/tclUnixFCmd.c
index 98d5224..f2fd914 100644
--- a/unix/tclUnixFCmd.c
+++ b/unix/tclUnixFCmd.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: tclUnixFCmd.c,v 1.12 2001/09/04 18:06:34 vincentdarley Exp $
+ * RCS: @(#) $Id: tclUnixFCmd.c,v 1.13 2001/09/28 11:10:56 vincentdarley Exp $
*
* Portions of this code were derived from NetBSD source code which has
* the following copyright notice:
@@ -1644,7 +1644,7 @@ TclpObjNormalizePath(interp, pathPtr, nextCheckpoint)
while (1) {
char cur = *currentPathEndPosition;
- if (cur == '/' || cur == 0) {
+ if ((cur == '/' || cur == 0) && (path != currentPathEndPosition)) {
/* Reached directory separator, or end of string */
Tcl_DString ds;
char *nativePath;