diff --git a/scp.c b/scp.c index e65b46631..f0cff40b8 100644 --- a/scp.c +++ b/scp.c @@ -595,12 +595,17 @@ main(int argc, char **argv) #ifdef WINDOWS /* * To support both Windows and Unix style paths - * convert '\\' to '/' in rest of arguments + * convert '\\' to '/' in path portion of rest arguments */ { int i; - for (i = 0; i < argc; i++) - convertToForwardslash(argv[i]); + char *p; + for (i = 0; i < argc; i++) { + if(p = colon(argv[i])) + convertToForwardslash(p); + else + convertToForwardslash(argv[i]); + } } #endif /* WINDOWS */