[openssh-commits] [openssh] 83/87: upstream: regress test for ForkAfterAuthentication implying

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Oct 30 20:22:00 AEDT 2026


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 9f95a516c8da4ced3c12d27cfcbbdf9d02479f26
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Fri Oct 30 06:41:17 2026 +0000

    upstream: regress test for ForkAfterAuthentication implying
    
    StdinNull
    
    Anthropic ANT-2026-7CJ6YZKN
    
    OpenBSD-Regress-ID: 30d1fe44f7d56c44771cda4c9f3e02a71c2def90
---
 regress/sshcfgparse.sh | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/regress/sshcfgparse.sh b/regress/sshcfgparse.sh
index 29fa1d839..d82afcc5c 100644
--- a/regress/sshcfgparse.sh
+++ b/regress/sshcfgparse.sh
@@ -1,4 +1,4 @@
-#	$OpenBSD: sshcfgparse.sh,v 1.10 2025/05/06 06:05:48 djm Exp $
+#	$OpenBSD: sshcfgparse.sh,v 1.11 2026/10/30 06:41:17 djm Exp $
 #	Placed in the Public Domain.
 
 tid="ssh config parse"
@@ -98,5 +98,21 @@ expect_result_present "$f" "cs1"
 f=`${SSH} -GF $OBJ/ssh_config.0 -otunneldevice=3:4 host | awk '/^tunneldevice /{print$2}'`
 expect_result_present "$f" "3:4"
 
+verbose "forkafterauthentication implies stdinnull"
+f=`${SSH} -GF none host | awk '/^stdinnull /{print$2}'`
+expect_result_present "$f" "no"
+f=`${SSH} -GF none -f host true | awk '/^stdinnull /{print$2}'`
+expect_result_present "$f" "yes"
+f=`${SSH} -GF none -oforkafterauthentication=yes host true | awk '/^stdinnull /{print$2}'`
+expect_result_present "$f" "yes"
+f=`${SSH} -GF none -oforkafterauthentication=no host | awk '/^stdinnull /{print$2}'`
+expect_result_present "$f" "no"
+cat >$OBJ/ssh_config.0 <<EOD
+Host *
+    ForkAfterAuthentication yes
+EOD
+f=`${SSH} -GF $OBJ/ssh_config.0 host true | awk '/^stdinnull /{print$2}'`
+expect_result_present "$f" "yes"
+
 # cleanup
 rm -f $OBJ/ssh_config.[012]

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list