From 6f07f1209cd5c5b1829c63e3351ec6661791aaaa Mon Sep 17 00:00:00 2001 From: djm Date: Fri, 14 May 2021 05:20:32 +0000 Subject: [PATCH] fix previous: test saved no_shell_flag, not the one that just got clobbered --- usr.bin/ssh/ssh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c index 610d8c8b142..c80276a7c1e 100644 --- a/usr.bin/ssh/ssh.c +++ b/usr.bin/ssh/ssh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh.c,v 1.554 2021/05/14 03:09:48 djm Exp $ */ +/* $OpenBSD: ssh.c,v 1.555 2021/05/14 05:20:32 djm Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -2126,7 +2126,7 @@ ssh_session2(struct ssh *ssh, const struct ssh_conn_info *cinfo) stdin_null_flag = 1; no_shell_flag = 1; tty_flag = 0; - if (!fork_after_authentication_flag && !no_shell_flag) + if (!fork_after_authentication_flag && !ono_shell_flag) need_controlpersist_detach = 1; fork_after_authentication_flag = 1; } -- 2.20.1