[openssh-commits] [openssh] 03/04: upstream: Skip sftp-chroot test when SUDO not set instead of

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Feb 23 14:07:32 AEDT 2018


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit f8985dde5f46aedade0373365cbf86ed3f1aead2
Author: dtucker at openbsd.org <dtucker at openbsd.org>
Date:   Fri Feb 9 03:42:57 2018 +0000

    upstream: Skip sftp-chroot test when SUDO not set instead of
    
    fatal().
    
    OpenBSD-Regress-ID: cd4b5f1109b0dc09af4e5ea7d4968c43fbcbde88
---
 regress/sftp-chroot.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/regress/sftp-chroot.sh b/regress/sftp-chroot.sh
index 4ea2fce8..ba5bd1ef 100644
--- a/regress/sftp-chroot.sh
+++ b/regress/sftp-chroot.sh
@@ -1,4 +1,4 @@
-#	$OpenBSD: sftp-chroot.sh,v 1.5 2016/09/26 21:34:38 bluhm Exp $
+#	$OpenBSD: sftp-chroot.sh,v 1.6 2018/02/09 03:42:57 dtucker Exp $
 #	Placed in the Public Domain.
 
 tid="sftp in chroot"
@@ -8,8 +8,9 @@ FILENAME=testdata_${USER}
 PRIVDATA=${CHROOT}/${FILENAME}
 
 if [ -z "$SUDO" -a ! -w /var/run ]; then
-  echo "skipped: need SUDO to create file in /var/run, test won't work without"
-  exit 0
+	echo "need SUDO to create file in /var/run, test won't work without"
+	echo SKIPPED
+	exit 0
 fi
 
 if ! $OBJ/check-perm -m chroot "$CHROOT" ; then

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list