SCP issue fix: backslashs in username (https://github.com/PowerShell/Win32-OpenSSH/issues/471)
This commit is contained in:
parent
6c049683d7
commit
654c18f960
11
scp.c
11
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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue