diff options
author | vincentdarley <vincentdarley> | 2002-06-10 10:41:29 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley> | 2002-06-10 10:41:29 (GMT) |
commit | e41988bdf21c8f8cd4088031e67e4fdd1793b7b7 (patch) | |
tree | 52f8f5eeb7341010a5adc4347582bada8c1d8f6a /unix | |
parent | 08219eb4280580b6c067ff3217add41b065014a6 (diff) | |
download | tcl-e41988bdf21c8f8cd4088031e67e4fdd1793b7b7.zip tcl-e41988bdf21c8f8cd4088031e67e4fdd1793b7b7.tar.gz tcl-e41988bdf21c8f8cd4088031e67e4fdd1793b7b7.tar.bz2 |
small fs fixes
Diffstat (limited to 'unix')
-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++; |