]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
skip, rather than fatal when run without SUDO set
authorDamien Miller <djm@mindrot.org>
Fri, 29 May 2015 08:27:21 +0000 (18:27 +1000)
committerDamien Miller <djm@mindrot.org>
Fri, 29 May 2015 08:27:21 +0000 (18:27 +1000)
regress/principals-command.sh

index c3816e08159b1c698ac9e7af3baf6e2265c1c299..90064373d9c5316ed1afc3c0620bccf0ae5540a3 100644 (file)
@@ -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