diff options
Diffstat (limited to 'regress/sftp-chroot.sh')
-rw-r--r-- | regress/sftp-chroot.sh | 4 |
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 | ||
4 | tid="sftp in chroot" | 4 | tid="sftp in chroot" |
5 | 5 | ||
6 | COPY=${OBJ}/copy | ||
7 | CHROOT=/var/run | 6 | CHROOT=/var/run |
8 | FILENAME=testdata_${USER} | 7 | FILENAME=testdata_${USER} |
9 | PRIVDATA=${CHROOT}/${FILENAME} | 8 | PRIVDATA=${CHROOT}/${FILENAME} |
@@ -18,7 +17,6 @@ $SUDO sh -c "echo mekmitastdigoat > $PRIVDATA" || \ | |||
18 | start_sshd -oChrootDirectory=$CHROOT -oForceCommand="internal-sftp -d /" | 17 | start_sshd -oChrootDirectory=$CHROOT -oForceCommand="internal-sftp -d /" |
19 | 18 | ||
20 | verbose "test $tid: get" | 19 | verbose "test $tid: get" |
21 | rm -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" |
24 | cmp $PRIVDATA $COPY || fail "$PRIVDATA $COPY differ" | 22 | cmp $PRIVDATA $COPY || fail "$PRIVDATA $COPY differ" |