From: Damien Miller Date: Fri, 29 May 2015 08:27:21 +0000 (+1000) Subject: skip, rather than fatal when run without SUDO set X-Git-Tag: V_6_9_P1~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51a1c2115265c6e80ede8a5c9dccada9aeed7143;p=thirdparty%2Fopenssh-portable.git skip, rather than fatal when run without SUDO set --- diff --git a/regress/principals-command.sh b/regress/principals-command.sh index c3816e081..90064373d 100644 --- a/regress/principals-command.sh +++ b/regress/principals-command.sh @@ -6,8 +6,10 @@ tid="authorized principals command" rm -f $OBJ/user_ca_key* $OBJ/cert_user_key* cp $OBJ/sshd_proxy $OBJ/sshd_proxy_bak -if [ -z "$SUDO" ]; then - fatal "need SUDO to create file in /var/run, test won't work without" +if test -z "$SUDO" ; then + echo "skipped (SUDO not set)" + echo "need SUDO to create file in /var/run, test won't work without" + exit 0 fi # Establish a AuthorizedPrincipalsCommand in /var/run where it will have