summaryrefslogtreecommitdiff
path: root/regress/keys-command.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regress/keys-command.sh')
-rw-r--r--regress/keys-command.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/regress/keys-command.sh b/regress/keys-command.sh
index af68cf15..9c9ada7c 100644
--- a/regress/keys-command.sh
+++ b/regress/keys-command.sh
@@ -3,7 +3,7 @@
tid="authorized keys from command"
-if test -z "$SUDO" ; then
+if [ -z "$SUDO" -a ! -w /var/run ]; then
echo "skipped (SUDO not set)"
echo "need SUDO to create file in /var/run, test won't work without"
exit 0