[openssh-commits] [openssh] 01/01: skip, rather than fatal when run without SUDO set
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri May 29 18:27:49 AEST 2015
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 51a1c2115265c6e80ede8a5c9dccada9aeed7143
Author: Damien Miller <djm at mindrot.org>
Date: Fri May 29 18:27:21 2015 +1000
skip, rather than fatal when run without SUDO set
---
regress/principals-command.sh | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/regress/principals-command.sh b/regress/principals-command.sh
index c3816e0..9006437 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
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list