From 3f3064c82238c486706471d300217d73dd0f125e Mon Sep 17 00:00:00 2001 From: Tim Rice Date: Sun, 2 Jun 2013 15:13:09 -0700 Subject: [PATCH] - (tim) [regress/sftp-chroot.sh] skip if no sudo. ok dtucker --- ChangeLog | 1 + regress/sftp-chroot.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 80f0fb4ee..4345d9956 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18,6 +18,7 @@ configure find us a capable shell on those platforms with an old /bin/sh. - (tim) [aclocal.m4] Enhance OSSH_CHECK_CFLAG_COMPILE to check stderr. feedback and ok dtucker + - (tim) [regress/sftp-chroot.sh] skip if no sudo. ok dtucker 20130601 - (dtucker) [configure.ac openbsd-compat/xcrypt.c] bz#2112: fall back to diff --git a/regress/sftp-chroot.sh b/regress/sftp-chroot.sh index 98a364ebf..03b9bc6d7 100644 --- a/regress/sftp-chroot.sh +++ b/regress/sftp-chroot.sh @@ -8,7 +8,8 @@ FILENAME=testdata_${USER} PRIVDATA=${CHROOT}/${FILENAME} if [ -z "$SUDO" ]; then - fatal "need SUDO to create file in /var/run, test won't work without" + echo "skipped: need SUDO to create file in /var/run, test won't work without" + exit 0 fi $SUDO sh -c "echo mekmitastdigoat > $PRIVDATA" || \