summaryrefslogtreecommitdiff
path: root/regress/sftp-chroot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regress/sftp-chroot.sh')
-rw-r--r--regress/sftp-chroot.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/regress/sftp-chroot.sh b/regress/sftp-chroot.sh
index 8c07979b4..98a364ebf 100644
--- a/regress/sftp-chroot.sh
+++ b/regress/sftp-chroot.sh
@@ -1,9 +1,8 @@
1# $OpenBSD: sftp-chroot.sh,v 1.1 2013/04/18 02:46:12 djm Exp $ 1# $OpenBSD: sftp-chroot.sh,v 1.2 2013/05/17 04:29:14 dtucker Exp $
2# Placed in the Public Domain. 2# Placed in the Public Domain.
3 3
4tid="sftp in chroot" 4tid="sftp in chroot"
5 5
6COPY=${OBJ}/copy
7CHROOT=/var/run 6CHROOT=/var/run
8FILENAME=testdata_${USER} 7FILENAME=testdata_${USER}
9PRIVDATA=${CHROOT}/${FILENAME} 8PRIVDATA=${CHROOT}/${FILENAME}
@@ -18,7 +17,6 @@ $SUDO sh -c "echo mekmitastdigoat > $PRIVDATA" || \
18start_sshd -oChrootDirectory=$CHROOT -oForceCommand="internal-sftp -d /" 17start_sshd -oChrootDirectory=$CHROOT -oForceCommand="internal-sftp -d /"
19 18
20verbose "test $tid: get" 19verbose "test $tid: get"
21rm -f ${COPY}
22${SFTP} -qS "$SSH" -F $OBJ/ssh_config host:/${FILENAME} $COPY || \ 20${SFTP} -qS "$SSH" -F $OBJ/ssh_config host:/${FILENAME} $COPY || \
23 fatal "Fetch ${FILENAME} failed" 21 fatal "Fetch ${FILENAME} failed"
24cmp $PRIVDATA $COPY || fail "$PRIVDATA $COPY differ" 22cmp $PRIVDATA $COPY || fail "$PRIVDATA $COPY differ"