]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Add shebang path to askpass script. Required for exec on
authordtucker@openbsd.org <dtucker@openbsd.org>
Sun, 29 Jun 2025 08:20:21 +0000 (08:20 +0000)
committerDarren Tucker <dtucker@dtucker.net>
Sun, 29 Jun 2025 08:30:32 +0000 (18:30 +1000)
some platforms (musl, probably others).

OpenBSD-Regress-ID: 35cdeed12ae701afcb812f800c04d817325cd22a

regress/password.sh

index 1c5218d6b1f48ff1a8f115c989139bfb6a42a708..10f507e4472ced289e1b47875ce51845dffc06b8 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: password.sh,v 1.1 2025/06/24 12:28:23 dtucker Exp $
+#      $OpenBSD: password.sh,v 1.2 2025/06/29 08:20:21 dtucker Exp $
 #      Placed in the Public Domain.
 #
 # This tests standard "password" authentication.  It does not run by default,
@@ -21,6 +21,7 @@ echo "PasswordAuthentication yes" >>sshd_proxy
 # Keep a counter of the number of times it has been called and
 # reply with the next line of the replypass file.
 cat >${OBJ}/replypass.sh <<EOD
+#!/bin/sh
 n=\`cat ${OBJ}/replypass.N\`
 awk "NR==\$n" ${OBJ}/replypass
 echo \$(( \$n + 1 )) >${OBJ}/replypass.N