diff options
author | Darren Tucker <dtucker@cvs.openbsd.org> | 2018-02-09 03:40:23 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@cvs.openbsd.org> | 2018-02-09 03:40:23 +0000 |
commit | 60002a29b7711e4c5453fd6eea25e927ed5fa945 (patch) | |
tree | cb81a96bd0a4a09a150c5a20d364f38e02d7c9ea /regress/usr.bin | |
parent | 30d2751492626379e5bc3fd65be0cfb9bd01bbd0 (diff) |
Replace fatal with exit in the case that we do not have $SUDO set.
Prevents test failures when neither sudo nor doas are configured.
Diffstat (limited to 'regress/usr.bin')
-rw-r--r-- | regress/usr.bin/ssh/agent-getpeereid.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/regress/usr.bin/ssh/agent-getpeereid.sh b/regress/usr.bin/ssh/agent-getpeereid.sh index 905c104e70b..96e78edbada 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.9 2017/09/13 14:58:26 bluhm Exp $ +# $OpenBSD: agent-getpeereid.sh,v 1.10 2018/02/09 03:40:22 dtucker Exp $ # Placed in the Public Domain. tid="disallow agent attach from other uid" @@ -19,8 +19,7 @@ case "x$SUDO" in 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" + exit 0 fi ;; *) fatal 'unsupported $SUDO - "doas" and "sudo" are allowed' ;; esac |