diff options
author | Tim Rice <tim@multitalents.net> | 2008-03-13 18:21:06 -0700 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2008-03-13 18:21:06 -0700 |
commit | dce65cfb3c40ecfac855f47a20b0c931d39db3a0 (patch) | |
tree | f629801a3ea615a2eaa0ab90e2258f42c29c0353 | |
parent | 3eb144911c149c293bf681bec7da649a8d33d420 (diff) |
- (tim) [regress/sftp-cmds.sh regress/ssh2putty.sh] Shell portability fixes
from imorgan at nas.nasa.gov
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | regress/sftp-cmds.sh | 6 | ||||
-rwxr-xr-x | regress/ssh2putty.sh | 4 |
3 files changed, 9 insertions, 5 deletions
@@ -5,6 +5,8 @@ | |||
5 | puttygen(1) by $PATH | 5 | puttygen(1) by $PATH |
6 | - (tim) [scp.c] Use poll.h if available, fall back to sys/poll.h if not. Patch | 6 | - (tim) [scp.c] Use poll.h if available, fall back to sys/poll.h if not. Patch |
7 | by vinschen at redhat.com. | 7 | by vinschen at redhat.com. |
8 | - (tim) [regress/sftp-cmds.sh regress/ssh2putty.sh] Shell portability fixes | ||
9 | from imorgan at nas.nasa.gov | ||
8 | 10 | ||
9 | 20080312 | 11 | 20080312 |
10 | - (djm) OpenBSD CVS Sync | 12 | - (djm) OpenBSD CVS Sync |
@@ -3748,4 +3750,4 @@ | |||
3748 | OpenServer 6 and add osr5bigcrypt support so when someone migrates | 3750 | OpenServer 6 and add osr5bigcrypt support so when someone migrates |
3749 | passwords between UnixWare and OpenServer they will still work. OK dtucker@ | 3751 | passwords between UnixWare and OpenServer they will still work. OK dtucker@ |
3750 | 3752 | ||
3751 | $Id: ChangeLog,v 1.4873 2008/03/14 00:59:50 tim Exp $ | 3753 | $Id: ChangeLog,v 1.4874 2008/03/14 01:21:06 tim Exp $ |
diff --git a/regress/sftp-cmds.sh b/regress/sftp-cmds.sh index a9bf50472..3cd7e6b4b 100644 --- a/regress/sftp-cmds.sh +++ b/regress/sftp-cmds.sh | |||
@@ -44,12 +44,12 @@ rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2 | |||
44 | mkdir ${COPY}.dd | 44 | mkdir ${COPY}.dd |
45 | 45 | ||
46 | verbose "$tid: lls" | 46 | verbose "$tid: lls" |
47 | echo "cd ${OBJ}\nlls" | ${SFTP} -P ${SFTPSERVER} 2>&1 | \ | 47 | echo "cd ${OBJ}" ; echo "lls" | ${SFTP} -P ${SFTPSERVER} 2>&1 | \ |
48 | grep -q copy.dd || fail "lls failed" | 48 | grep copy.dd >/dev/null 2>&1 || fail "lls failed" |
49 | 49 | ||
50 | verbose "$tid: lls w/path" | 50 | verbose "$tid: lls w/path" |
51 | echo "lls ${OBJ}" | ${SFTP} -P ${SFTPSERVER} 2>&1 | \ | 51 | echo "lls ${OBJ}" | ${SFTP} -P ${SFTPSERVER} 2>&1 | \ |
52 | grep -q copy.dd || fail "lls w/path failed" | 52 | grep copy.dd >/dev/null 2>&1 || fail "lls w/path failed" |
53 | 53 | ||
54 | verbose "$tid: ls" | 54 | verbose "$tid: ls" |
55 | echo "ls ${OBJ}" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ | 55 | echo "ls ${OBJ}" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ |
diff --git a/regress/ssh2putty.sh b/regress/ssh2putty.sh index 82dd44787..dfdeeff4a 100755 --- a/regress/ssh2putty.sh +++ b/regress/ssh2putty.sh | |||
@@ -10,7 +10,9 @@ PORT=$2 | |||
10 | KEYFILE=$3 | 10 | KEYFILE=$3 |
11 | 11 | ||
12 | # XXX - support DSA keys too | 12 | # XXX - support DSA keys too |
13 | if ! grep -q "BEGIN RSA PRIVATE KEY" $KEYFILE ; then | 13 | if grep "BEGIN RSA PRIVATE KEY" $KEYFILE >/dev/null 2>&1 ; then |
14 | : | ||
15 | else | ||
14 | echo "Unsupported private key format" | 16 | echo "Unsupported private key format" |
15 | exit 1 | 17 | exit 1 |
16 | fi | 18 | fi |