-# $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"
PRIVDATA=${CHROOT}/${FILENAME}
if [ -z "$SUDO" -a ! -w /var/run ]; then
- fatal "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
$SUDO sh -c "echo mekmitastdigoat > $PRIVDATA" || \