diff options
author | vincentdarley <vincentdarley@noemail.net> | 2002-06-10 10:41:29 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley@noemail.net> | 2002-06-10 10:41:29 (GMT) |
commit | 6dd81e4ceb99594842bd5e5c8c771aaf7e86a0ee (patch) | |
tree | 52f8f5eeb7341010a5adc4347582bada8c1d8f6a /unix/tclUnixFCmd.c | |
parent | 8b93941be2a6f0e2fd46547a93fa427173c60602 (diff) | |
download | tcl-6dd81e4ceb99594842bd5e5c8c771aaf7e86a0ee.zip tcl-6dd81e4ceb99594842bd5e5c8c771aaf7e86a0ee.tar.gz tcl-6dd81e4ceb99594842bd5e5c8c771aaf7e86a0ee.tar.bz2 |
small fs fixes
FossilOrigin-Name: 5d031eef108ae8bd5dadbf1c3c47fc746fa17548
Diffstat (limited to 'unix/tclUnixFCmd.c')
-rw-r--r-- | unix/tclUnixFCmd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/unix/tclUnixFCmd.c b/unix/tclUnixFCmd.c index f70d008..7a62bc7 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.21 2002/04/07 05:44:11 hobbs Exp $ + * RCS: @(#) $Id: tclUnixFCmd.c,v 1.22 2002/06/10 10:41:29 vincentdarley Exp $ * * Portions of this code were derived from NetBSD source code which has * the following copyright notice: @@ -1675,7 +1675,7 @@ TclpObjNormalizePath(interp, pathPtr, nextCheckpoint) while (1) { cur = *currentPathEndPosition; if ((cur == '/') && (path != currentPathEndPosition)) { - /* Reached directory separator, or end of string */ + /* Reached directory separator */ Tcl_DString ds; CONST char *nativePath; int accessOk; @@ -1691,6 +1691,8 @@ TclpObjNormalizePath(interp, pathPtr, nextCheckpoint) /* Update the acceptable point */ nextCheckpoint = currentPathEndPosition - path; } else if (cur == 0) { + /* Reached end of string */ + nextCheckpoint = pathLen; break; } currentPathEndPosition++; |