Remove authinfo.sh test dependency on printenv

Some platforms lack printenv in the default $PATH.
Reported by Tom G. Christensen
This commit is contained in:
Damien Miller 2018-03-26 09:37:02 +11:00
parent 4afeaf3dcb
commit 4b7d8acdbb
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ tid="authinfo"
# Ensure the environment variable doesn't leak when ExposeAuthInfo=no. # Ensure the environment variable doesn't leak when ExposeAuthInfo=no.
verbose "ExposeAuthInfo=no" verbose "ExposeAuthInfo=no"
env SSH_USER_AUTH=blah ${SSH} -F $OBJ/ssh_proxy x \ env SSH_USER_AUTH=blah ${SSH} -F $OBJ/ssh_proxy x \
'printenv SSH_USER_AUTH >/dev/null' && fail "SSH_USER_AUTH present" 'env | grep SSH_USER_AUTH >/dev/null' && fail "SSH_USER_AUTH present"
verbose "ExposeAuthInfo=yes" verbose "ExposeAuthInfo=yes"
echo ExposeAuthInfo=yes >> $OBJ/sshd_proxy echo ExposeAuthInfo=yes >> $OBJ/sshd_proxy