summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2017-09-13 14:58:26 +0000
committerbluhm <bluhm@openbsd.org>2017-09-13 14:58:26 +0000
commit830d13514e5b3249a255084246ece82faa41e0d3 (patch)
tree2d3c1b28e96af3aff800216570683a65c32ae099
parentFix typo; ok benno@ jmc@ sthen@ tb@ (diff)
downloadwireguard-openbsd-830d13514e5b3249a255084246ece82faa41e0d3.tar.xz
wireguard-openbsd-830d13514e5b3249a255084246ece82faa41e0d3.zip
Print SKIPPED if sudo and doas configuration is missing. Prevents
that running the regression test with wrong environment is reported as failure. Keep the fatal there to avoid interfering with other setups for portable ssh. OK dtucker@
-rw-r--r--regress/usr.bin/ssh/agent-getpeereid.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/regress/usr.bin/ssh/agent-getpeereid.sh b/regress/usr.bin/ssh/agent-getpeereid.sh
index 0c1f24453be..905c104e70b 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.8 2017/01/06 02:51:16 djm Exp $
+# $OpenBSD: agent-getpeereid.sh,v 1.9 2017/09/13 14:58:26 bluhm Exp $
# Placed in the Public Domain.
tid="disallow agent attach from other uid"
@@ -17,6 +17,8 @@ case "x$SUDO" in
elif [ -f /etc/doas.conf ]; then
SUDO=/usr/bin/doas
else
+ echo neither sudo and sudoers nor doas.conf exist
+ echo SKIPPED
fatal "need SUDO to switch to uid $UNPRIV," \
"test won't work without"
fi ;;