summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2003-02-10 12:50:30 (GMT)
committervincentdarley <vincentdarley>2003-02-10 12:50:30 (GMT)
commit71073845ccadf428914c16d0163073f941114c72 (patch)
treec3b570affd9947fcdb255e3417752cd71200acc1 /unix
parent850d398c1a0776e72d591c406090dfaca8492aeb (diff)
downloadtcl-71073845ccadf428914c16d0163073f941114c72.zip
tcl-71073845ccadf428914c16d0163073f941114c72.tar.gz
tcl-71073845ccadf428914c16d0163073f941114c72.tar.bz2
further fs cleanup
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixFCmd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/unix/tclUnixFCmd.c b/unix/tclUnixFCmd.c
index a5b6792..bc9746f 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.27 2003/02/10 10:26:26 vincentdarley Exp $
+ * RCS: @(#) $Id: tclUnixFCmd.c,v 1.28 2003/02/10 12:50:31 vincentdarley Exp $
*
* Portions of this code were derived from NetBSD source code which has
* the following copyright notice:
@@ -1673,7 +1673,10 @@ TclpObjNormalizePath(interp, pathPtr, nextCheckpoint)
* that '/' exists, and if it isn't zero, it must point at
* a directory separator which we also know exists.
*/
- currentPathEndPosition = path + nextCheckpoint + 1;
+ currentPathEndPosition = path + nextCheckpoint;
+ if (*currentPathEndPosition == '/') {
+ currentPathEndPosition++;
+ }
#ifndef NO_REALPATH
/* For speed, try to get the entire path in one go */