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

11
scp.c
View File

@ -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 */