From 84d3bf3c22e9004d411572b83a2d6f286f22a1f0 Mon Sep 17 00:00:00 2001 From: djm Date: Fri, 17 May 2024 01:45:22 +0000 Subject: [PATCH] allow overriding the sshd-session binary path --- regress/usr.bin/ssh/test-exec.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/regress/usr.bin/ssh/test-exec.sh b/regress/usr.bin/ssh/test-exec.sh index ee9be54b54e..fc9b2402b97 100644 --- a/regress/usr.bin/ssh/test-exec.sh +++ b/regress/usr.bin/ssh/test-exec.sh @@ -1,4 +1,4 @@ -# $OpenBSD: test-exec.sh,v 1.110 2024/04/03 06:01:11 anton Exp $ +# $OpenBSD: test-exec.sh,v 1.111 2024/05/17 01:45:22 djm Exp $ # Placed in the Public Domain. #SUDO=sudo @@ -52,6 +52,7 @@ SSHKEYGEN=ssh-keygen SSHKEYSCAN=ssh-keyscan SFTP=sftp SFTPSERVER=/usr/libexec/sftp-server +SSHD_SESSION=/usr/libexec/sshd-session SCP=scp # Interop testing @@ -73,6 +74,9 @@ OPENSSL_BIN="${OPENSSL_BIN:-openssl}" if [ "x$TEST_SSH_SSH" != "x" ]; then SSH="${TEST_SSH_SSH}" fi +if [ "x$TEST_SSH_SSHD_SESSION" != "x" ]; then + SSHD_SESSION="${TEST_SSH_SSHD_SESSION}" +fi if [ "x$TEST_SSH_SSHD" != "x" ]; then SSHD="${TEST_SSH_SSHD}" fi @@ -422,6 +426,7 @@ cat << EOF > $OBJ/sshd_config AcceptEnv _XXX_TEST_* AcceptEnv _XXX_TEST Subsystem sftp $SFTPSERVER + SshdSessionPath $SSHD_SESSION EOF # This may be necessary if /usr/src and/or /usr/obj are group-writable, -- 2.20.1