diff options
Diffstat (limited to 'regress')
-rw-r--r-- | regress/sftp-chroot.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/regress/sftp-chroot.sh b/regress/sftp-chroot.sh index 4ea2fce85..ba5bd1efb 100644 --- a/regress/sftp-chroot.sh +++ b/regress/sftp-chroot.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: sftp-chroot.sh,v 1.5 2016/09/26 21:34:38 bluhm Exp $ | 1 | # $OpenBSD: sftp-chroot.sh,v 1.6 2018/02/09 03:42:57 dtucker Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | tid="sftp in chroot" | 4 | tid="sftp in chroot" |
@@ -8,8 +8,9 @@ FILENAME=testdata_${USER} | |||
8 | PRIVDATA=${CHROOT}/${FILENAME} | 8 | PRIVDATA=${CHROOT}/${FILENAME} |
9 | 9 | ||
10 | if [ -z "$SUDO" -a ! -w /var/run ]; then | 10 | if [ -z "$SUDO" -a ! -w /var/run ]; then |
11 | echo "skipped: need SUDO to create file in /var/run, test won't work without" | 11 | echo "need SUDO to create file in /var/run, test won't work without" |
12 | exit 0 | 12 | echo SKIPPED |
13 | exit 0 | ||
13 | fi | 14 | fi |
14 | 15 | ||
15 | if ! $OBJ/check-perm -m chroot "$CHROOT" ; then | 16 | if ! $OBJ/check-perm -m chroot "$CHROOT" ; then |