diff options
author | vincentdarley <vincentdarley@noemail.net> | 2003-02-10 12:50:29 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley@noemail.net> | 2003-02-10 12:50:29 (GMT) |
commit | cab7caefdd6fc29de01b5e0dc130ed3f784acc2f (patch) | |
tree | c3b570affd9947fcdb255e3417752cd71200acc1 /unix/tclUnixFCmd.c | |
parent | fbdc918e2a9aa85153ac460ab5edf00e8c2c9605 (diff) | |
download | tcl-cab7caefdd6fc29de01b5e0dc130ed3f784acc2f.zip tcl-cab7caefdd6fc29de01b5e0dc130ed3f784acc2f.tar.gz tcl-cab7caefdd6fc29de01b5e0dc130ed3f784acc2f.tar.bz2 |
further fs cleanup
FossilOrigin-Name: 4e91ed4531b688a030ac3306b48822833c025811
Diffstat (limited to 'unix/tclUnixFCmd.c')
-rw-r--r-- | unix/tclUnixFCmd.c | 7 |
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 */ |