- (tim) [regress/sftp-cmds.sh regress/ssh2putty.sh] Shell portability fixes

from imorgan at nas.nasa.gov
This commit is contained in:
Tim Rice 2008-03-13 18:21:06 -07:00
parent 3eb144911c
commit dce65cfb3c
3 changed files with 9 additions and 5 deletions

View File

@ -5,6 +5,8 @@
puttygen(1) by $PATH
- (tim) [scp.c] Use poll.h if available, fall back to sys/poll.h if not. Patch
by vinschen at redhat.com.
- (tim) [regress/sftp-cmds.sh regress/ssh2putty.sh] Shell portability fixes
from imorgan at nas.nasa.gov
20080312
- (djm) OpenBSD CVS Sync
@ -3748,4 +3750,4 @@
OpenServer 6 and add osr5bigcrypt support so when someone migrates
passwords between UnixWare and OpenServer they will still work. OK dtucker@
$Id: ChangeLog,v 1.4873 2008/03/14 00:59:50 tim Exp $
$Id: ChangeLog,v 1.4874 2008/03/14 01:21:06 tim Exp $

View File

@ -44,12 +44,12 @@ rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2
mkdir ${COPY}.dd
verbose "$tid: lls"
echo "cd ${OBJ}\nlls" | ${SFTP} -P ${SFTPSERVER} 2>&1 | \
grep -q copy.dd || fail "lls failed"
echo "cd ${OBJ}" ; echo "lls" | ${SFTP} -P ${SFTPSERVER} 2>&1 | \
grep copy.dd >/dev/null 2>&1 || fail "lls failed"
verbose "$tid: lls w/path"
echo "lls ${OBJ}" | ${SFTP} -P ${SFTPSERVER} 2>&1 | \
grep -q copy.dd || fail "lls w/path failed"
grep copy.dd >/dev/null 2>&1 || fail "lls w/path failed"
verbose "$tid: ls"
echo "ls ${OBJ}" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \

View File

@ -10,7 +10,9 @@ PORT=$2
KEYFILE=$3
# XXX - support DSA keys too
if ! grep -q "BEGIN RSA PRIVATE KEY" $KEYFILE ; then
if grep "BEGIN RSA PRIVATE KEY" $KEYFILE >/dev/null 2>&1 ; then
:
else
echo "Unsupported private key format"
exit 1
fi