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 /win | |
parent | fbdc918e2a9aa85153ac460ab5edf00e8c2c9605 (diff) | |
download | tcl-cab7caefdd6fc29de01b5e0dc130ed3f784acc2f.zip tcl-cab7caefdd6fc29de01b5e0dc130ed3f784acc2f.tar.gz tcl-cab7caefdd6fc29de01b5e0dc130ed3f784acc2f.tar.bz2 |
further fs cleanup
FossilOrigin-Name: 4e91ed4531b688a030ac3306b48822833c025811
Diffstat (limited to 'win')
-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)) { |