summaryrefslogtreecommitdiff
path: root/regress/authinfo.sh
diff options
context:
space:
mode:
authormillert@openbsd.org@openbsd.org <millert@openbsd.org@openbsd.org>2017-10-25 20:08:36 +0000
committerDamien Miller <djm@mindrot.org>2017-10-31 09:08:51 +1100
commite4d4ddbbba0e585ca3ec3a455430750b4622a6d3 (patch)
tree1f5186379bcd2a987511137f169c060cf5f019da /regress/authinfo.sh
parent116b1b439413a724ebb3320633a64dd0f3ee1fe7 (diff)
upstream commit
Use printenv to test whether an SSH_USER_AUTH is set instead of using $SSH_USER_AUTH. The latter won't work with csh which treats unknown variables as an error when expanding them. OK markus@ OpenBSD-Regress-ID: f601e878dd8b71aa40381573dde3a8f567e6f2d1
Diffstat (limited to 'regress/authinfo.sh')
-rw-r--r--regress/authinfo.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/authinfo.sh b/regress/authinfo.sh
index e725296c9..9bd0a4d83 100644
--- a/regress/authinfo.sh
+++ b/regress/authinfo.sh
@@ -1,4 +1,4 @@
1# $OpenBSD: authinfo.sh,v 1.1 2017/06/24 06:35:24 djm Exp $ 1# $OpenBSD: authinfo.sh,v 1.2 2017/10/25 20:08:36 millert Exp $
2# Placed in the Public Domain. 2# Placed in the Public Domain.
3 3
4tid="authinfo" 4tid="authinfo"
@@ -6,7 +6,7 @@ tid="authinfo"
6# Ensure the environment variable doesn't leak when ExposeAuthInfo=no. 6# Ensure the environment variable doesn't leak when ExposeAuthInfo=no.
7verbose "ExposeAuthInfo=no" 7verbose "ExposeAuthInfo=no"
8env SSH_USER_AUTH=blah ${SSH} -F $OBJ/ssh_proxy x \ 8env SSH_USER_AUTH=blah ${SSH} -F $OBJ/ssh_proxy x \
9 'test -z "$SSH_USER_AUTH"' || fail "SSH_USER_AUTH present" 9 'printenv SSH_USER_AUTH >/dev/null' && fail "SSH_USER_AUTH present"
10 10
11verbose "ExposeAuthInfo=yes" 11verbose "ExposeAuthInfo=yes"
12echo ExposeAuthInfo=yes >> $OBJ/sshd_proxy 12echo ExposeAuthInfo=yes >> $OBJ/sshd_proxy