mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 00:04:30 +02:00
upstream: Skip sftp-chroot test when SUDO not set instead of
fatal(). OpenBSD-Regress-ID: cd4b5f1109b0dc09af4e5ea7d4968c43fbcbde88
This commit is contained in:
parent
df88551c02
commit
f8985dde5f
@ -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,7 +8,8 @@ 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"
|
||||
echo "need SUDO to create file in /var/run, test won't work without"
|
||||
echo SKIPPED
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user