This commit is contained in:
Yanbing 2017-01-10 20:21:40 -08:00 committed by Manoj Ampalam
parent 6c049683d7
commit 654c18f960
1 changed files with 8 additions and 3 deletions

9
scp.c
View File

@ -595,13 +595,18 @@ main(int argc, char **argv)
#ifdef WINDOWS #ifdef WINDOWS
/* /*
* To support both Windows and Unix style paths * To support both Windows and Unix style paths
* convert '\\' to '/' in rest of arguments * convert '\\' to '/' in path portion of rest arguments
*/ */
{ {
int i; int i;
for (i = 0; i < argc; i++) char *p;
for (i = 0; i < argc; i++) {
if(p = colon(argv[i]))
convertToForwardslash(p);
else
convertToForwardslash(argv[i]); convertToForwardslash(argv[i]);
} }
}
#endif /* WINDOWS */ #endif /* WINDOWS */
if (fflag) { if (fflag) {