Replace fatal with exit in the case that we do not have $SUDO set.
authordtucker <dtucker@openbsd.org>
Fri, 9 Feb 2018 03:40:22 +0000 (03:40 +0000)
committerdtucker <dtucker@openbsd.org>
Fri, 9 Feb 2018 03:40:22 +0000 (03:40 +0000)
Prevents test failures when neither sudo nor doas are configured.

regress/usr.bin/ssh/agent-getpeereid.sh

index 905c104..96e78ed 100644 (file)
@@ -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