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