From 41821af9b43e6b923e17c40bee2b60800140eb20 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Tue, 10 Apr 2018 00:13:28 +0000 Subject: make this a bit more portable-friendly --- regress/usr.bin/ssh/authinfo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'regress/usr.bin/ssh/authinfo.sh') diff --git a/regress/usr.bin/ssh/authinfo.sh b/regress/usr.bin/ssh/authinfo.sh index 9bd0a4d8366..693424afafa 100644 --- a/regress/usr.bin/ssh/authinfo.sh +++ b/regress/usr.bin/ssh/authinfo.sh @@ -1,4 +1,4 @@ -# $OpenBSD: authinfo.sh,v 1.2 2017/10/25 20:08:36 millert Exp $ +# $OpenBSD: authinfo.sh,v 1.3 2018/04/10 00:13:27 djm Exp $ # Placed in the Public Domain. tid="authinfo" @@ -6,7 +6,7 @@ tid="authinfo" # Ensure the environment variable doesn't leak when ExposeAuthInfo=no. verbose "ExposeAuthInfo=no" 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" echo ExposeAuthInfo=yes >> $OBJ/sshd_proxy -- cgit v1.2.3