upstream: Add shebang path to askpass script. Required for exec on

some platforms (musl, probably others).

OpenBSD-Regress-ID: 35cdeed12ae701afcb812f800c04d817325cd22a
This commit is contained in:
dtucker@openbsd.org authored and Darren Tucker committed 2025-06-29 18:30:32 +10:00
1 parent 83d3ffc0fc
commit b28e91aff8
1 file changed
+2 -1
+2 -1
View 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