- djm@cvs.openbsd.org 2007/12/12 05:04:03

[regress/sftp-cmds.sh]
     unbreak lls command and add a regress test that would have caught the
     breakage; spotted by mouring@
     NB. sftp code change already committed.
This commit is contained in:
Damien Miller 2008-03-12 23:59:43 +11:00
parent d666d8e5d4
commit 4cd5fbab4d
2 changed files with 13 additions and 5 deletions

View File

@ -8,6 +8,11 @@
more existant -> existent, from Martynas Venckus; more existant -> existent, from Martynas Venckus;
pfctl changes: ok henning pfctl changes: ok henning
ssh changes: ok deraadt ssh changes: ok deraadt
- djm@cvs.openbsd.org 2007/12/12 05:04:03
[regress/sftp-cmds.sh]
unbreak lls command and add a regress test that would have caught the
breakage; spotted by mouring@
NB. sftp code change already committed.
20080311 20080311
- (dtucker) [auth-pam.c monitor.c session.c sshd.c] Bug #926: Move - (dtucker) [auth-pam.c monitor.c session.c sshd.c] Bug #926: Move
@ -3729,4 +3734,4 @@
OpenServer 6 and add osr5bigcrypt support so when someone migrates OpenServer 6 and add osr5bigcrypt support so when someone migrates
passwords between UnixWare and OpenServer they will still work. OK dtucker@ passwords between UnixWare and OpenServer they will still work. OK dtucker@
$Id: ChangeLog,v 1.4868 2008/03/12 12:58:55 djm Exp $ $Id: ChangeLog,v 1.4869 2008/03/12 12:59:43 djm Exp $

View File

@ -1,4 +1,4 @@
# $OpenBSD: sftp-cmds.sh,v 1.8 2007/10/24 03:32:35 djm Exp $ # $OpenBSD: sftp-cmds.sh,v 1.9 2007/12/12 05:04:03 djm Exp $
# Placed in the Public Domain. # Placed in the Public Domain.
# XXX - TODO: # XXX - TODO:
@ -44,9 +44,12 @@ rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2
mkdir ${COPY}.dd mkdir ${COPY}.dd
verbose "$tid: lls" verbose "$tid: lls"
echo "lls ${OBJ}" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ echo "cd ${OBJ}\nlls" | ${SFTP} -P ${SFTPSERVER} 2>&1 | \
|| fail "lls failed" grep -q copy.dd || fail "lls failed"
# XXX always successful
verbose "$tid: lls w/path"
echo "lls ${OBJ}" | ${SFTP} -P ${SFTPSERVER} 2>&1 | \
grep -q copy.dd || fail "lls w/path failed"
verbose "$tid: ls" verbose "$tid: ls"
echo "ls ${OBJ}" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ echo "ls ${OBJ}" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \