mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-25 23:05:21 +02:00
upstream: fix breakage of -W forwaring introduced in 1.554; reported by
naddy@ and sthen@, ok sthen@ OpenBSD-Commit-ID: f72558e643a26dc4150cff6e5097b5502f6c85fd
This commit is contained in:
parent
afea01381a
commit
c4902e1a65
5
ssh.c
5
ssh.c
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: ssh.c,v 1.555 2021/05/14 05:20:32 djm Exp $ */
|
/* $OpenBSD: ssh.c,v 1.556 2021/05/17 11:43:16 djm Exp $ */
|
||||||
/*
|
/*
|
||||||
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||||
@ -2147,7 +2147,8 @@ ssh_session2(struct ssh *ssh, const struct ssh_conn_info *cinfo)
|
|||||||
stdin_null_flag = 1;
|
stdin_null_flag = 1;
|
||||||
no_shell_flag = 1;
|
no_shell_flag = 1;
|
||||||
tty_flag = 0;
|
tty_flag = 0;
|
||||||
if (!fork_after_authentication_flag && !ono_shell_flag)
|
if (!fork_after_authentication_flag &&
|
||||||
|
(!ono_shell_flag || options.stdio_forward_host != NULL))
|
||||||
need_controlpersist_detach = 1;
|
need_controlpersist_detach = 1;
|
||||||
fork_after_authentication_flag = 1;
|
fork_after_authentication_flag = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user