diff options
author | Darren Tucker <dtucker@cvs.openbsd.org> | 2013-05-17 10:33:10 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@cvs.openbsd.org> | 2013-05-17 10:33:10 +0000 |
commit | 195a63342bae9436a7f0669f2308be3929cf3136 (patch) | |
tree | d25ca1dc2e6595cd82b7e223b81c661f11626e5d /regress/usr.bin | |
parent | 6874480cb6777cdba932c5cc3420bf683e9aa267 (diff) |
don't redirect stdout from sudo. from portable
Diffstat (limited to 'regress/usr.bin')
-rw-r--r-- | regress/usr.bin/ssh/agent-getpeereid.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/usr.bin/ssh/agent-getpeereid.sh b/regress/usr.bin/ssh/agent-getpeereid.sh index 42ac5e91f1b..8e803cf5d77 100644 --- a/regress/usr.bin/ssh/agent-getpeereid.sh +++ b/regress/usr.bin/ssh/agent-getpeereid.sh @@ -1,4 +1,4 @@ -# $OpenBSD: agent-getpeereid.sh,v 1.4 2007/11/25 15:35:09 jmc Exp $ +# $OpenBSD: agent-getpeereid.sh,v 1.5 2013/05/17 10:33:09 dtucker Exp $ # Placed in the Public Domain. tid="disallow agent attach from other uid" @@ -25,7 +25,7 @@ else fail "ssh-add failed with $r != 1" fi - < /dev/null ${SUDO} -S -u ${UNPRIV} ssh-add -l > /dev/null 2>&1 + < /dev/null ${SUDO} -S -u ${UNPRIV} ssh-add -l 2>/dev/null r=$? if [ $r -lt 2 ]; then fail "ssh-add did not fail for ${UNPRIV}: $r < 2" |