Merge pull request #314 from manu0401/windows_openssh
Windows native OpenSSH fix
This commit is contained in:
commit
ef94977c5a
7
sshfs.c
7
sshfs.c
|
|
@ -1227,6 +1227,13 @@ static int start_ssh(struct conn *conn)
|
|||
fprintf(stderr, "\n");
|
||||
}
|
||||
|
||||
#if defined(__CYGWIN__)
|
||||
/*
|
||||
* Windows native OpenSSH stdio behavior. For details check
|
||||
* https://github.com/PowerShell/openssh-portable/pull/759
|
||||
*/
|
||||
putenv("OPENSSH_STDIO_MODE=nonsock");
|
||||
#endif
|
||||
execvp(sshfs.ssh_args.argv[0], sshfs.ssh_args.argv);
|
||||
fprintf(stderr, "failed to execute '%s': %s\n",
|
||||
sshfs.ssh_args.argv[0], strerror(errno));
|
||||
|
|
|
|||
Loading…
Reference in New Issue