diff options
| author | vincentdarley <vincentdarley> | 2003-02-10 12:50:30 (GMT) |
|---|---|---|
| committer | vincentdarley <vincentdarley> | 2003-02-10 12:50:30 (GMT) |
| commit | dc186aa203a0a0a843605b5964070e7639a51bb6 (patch) | |
| tree | c3b570affd9947fcdb255e3417752cd71200acc1 /unix/tclUnixFCmd.c | |
| parent | 90f27e3911063a5356705d48f9130e8762c52f3e (diff) | |
| download | tcl-dc186aa203a0a0a843605b5964070e7639a51bb6.zip tcl-dc186aa203a0a0a843605b5964070e7639a51bb6.tar.gz tcl-dc186aa203a0a0a843605b5964070e7639a51bb6.tar.bz2 | |
further fs cleanup
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 */ |
