- djm@cvs.openbsd.org 2003/10/07 07:04:52

[regress/sftp-cmds.sh]
     more sftp quoting regress tests; ok markus
This commit is contained in:
Darren Tucker 2003-10-08 17:52:10 +10:00
parent dc001a5ee3
commit 0240ff786e
2 changed files with 19 additions and 2 deletions

View File

@ -13,6 +13,9 @@
- dtucker@cvs.openbsd.org 2003/10/07 01:52:13
[regress/Makefile regress/banner.sh]
Test SSH2 banner. ok markus@
- djm@cvs.openbsd.org 2003/10/07 07:04:52
[regress/sftp-cmds.sh]
more sftp quoting regress tests; ok markus
20031007
- (djm) Delete autom4te.cache after autoreconf
@ -1308,4 +1311,4 @@
- Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
Report from murple@murple.net, diagnosis from dtucker@zip.com.au
$Id: ChangeLog,v 1.3067 2003/10/08 07:47:19 dtucker Exp $
$Id: ChangeLog,v 1.3068 2003/10/08 07:52:10 dtucker Exp $

View File

@ -1,4 +1,4 @@
# $OpenBSD: sftp-cmds.sh,v 1.5 2003/07/19 00:46:31 djm Exp $
# $OpenBSD: sftp-cmds.sh,v 1.6 2003/10/07 07:04:52 djm Exp $
# Placed in the Public Domain.
# XXX - TODO:
@ -79,6 +79,20 @@ echo "get $DATA $COPY" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \
|| fail "get failed"
cmp $DATA ${COPY} || fail "corrupted copy after get"
rm -f ${COPY}
verbose "$tid: get quoted"
echo "get \"$DATA\" $COPY" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \
|| fail "get failed"
cmp $DATA ${COPY} || fail "corrupted copy after get"
rm -f ${QUOTECOPY}
cp $DATA ${QUOTECOPY}
verbose "$tid: get filename with quotes"
echo "get \"$QUOTECOPY_ARG\" ${COPY}" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \
|| fail "put failed"
cmp ${COPY} ${QUOTECOPY} || fail "corrupted copy after get with quotes"
rm -f ${QUOTECOPY} ${COPY}
rm -f ${COPY}.dd/*
verbose "$tid: get to directory"
echo "get $DATA ${COPY}.dd" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \