upstream: Replace fatal with exit in the case that we do not have

$SUDO set. Prevents test failures when neither sudo nor doas are configured.

OpenBSD-Regress-ID: 6a0464decc4f8ac7d6eded556a032b0fc521bc7b
This commit is contained in:
dtucker@openbsd.org 2018-02-09 03:40:22 +00:00 committed by Damien Miller
parent 3e9d3192ad
commit b5e9263c77

View File

@ -18,6 +18,7 @@ case "x$SUDO" in
xdoas) ;;
x)
echo "need SUDO to switch to uid $UNPRIV"
echo SKIPPED
exit 0 ;;
*)
echo "unsupported $SUDO - "doas" and "sudo" are allowed"