diff options
author | vincentdarley <vincentdarley> | 2003-02-10 12:50:30 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley> | 2003-02-10 12:50:30 (GMT) |
commit | 71073845ccadf428914c16d0163073f941114c72 (patch) | |
tree | c3b570affd9947fcdb255e3417752cd71200acc1 /win/tclWinFile.c | |
parent | 850d398c1a0776e72d591c406090dfaca8492aeb (diff) | |
download | tcl-71073845ccadf428914c16d0163073f941114c72.zip tcl-71073845ccadf428914c16d0163073f941114c72.tar.gz tcl-71073845ccadf428914c16d0163073f941114c72.tar.bz2 |
further fs cleanup
Diffstat (limited to 'win/tclWinFile.c')
-rw-r--r-- | win/tclWinFile.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c index 128e147..8213e6d 100644 --- a/win/tclWinFile.c +++ b/win/tclWinFile.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinFile.c,v 1.43 2003/02/10 10:26:26 vincentdarley Exp $ + * RCS: @(#) $Id: tclWinFile.c,v 1.44 2003/02/10 12:50:32 vincentdarley Exp $ */ //#define _WIN32_WINNT 0x0500 @@ -699,7 +699,6 @@ TclpMatchInDirectory(interp, resultPtr, pathPtr, pattern, types) } return TCL_OK; } else { - char drivePat[] = "?:\\"; DWORD attr; HANDLE handle; WIN32_FIND_DATAT data; @@ -2026,7 +2025,10 @@ TclpObjNormalizePath(interp, pathPtr, nextCheckpoint) int isDrive = 1; Tcl_DString ds; - currentPathEndPosition = path + nextCheckpoint + 1; + currentPathEndPosition = path + nextCheckpoint; + if (*currentPathEndPosition == '/') { + currentPathEndPosition++; + } while (1) { char cur = *currentPathEndPosition; if ((cur == '/' || cur == 0) && (path != currentPathEndPosition)) { @@ -2095,7 +2097,10 @@ TclpObjNormalizePath(interp, pathPtr, nextCheckpoint) int isDrive = 1; Tcl_DString ds; - currentPathEndPosition = path + nextCheckpoint + 1; + currentPathEndPosition = path + nextCheckpoint; + if (*currentPathEndPosition == '/') { + currentPathEndPosition++; + } while (1) { char cur = *currentPathEndPosition; if ((cur == '/' || cur == 0) && (path != currentPathEndPosition)) { |