From 37461d7391e0944d880757b9ac8c98d1feb15a40 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Wed, 12 Dec 2012 12:37:32 +1100 Subject: [PATCH] - (djm) [regress/integrity.sh] Fix awk quoting, packet length skip --- ChangeLog | 3 +++ regress/integrity.sh | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index ed58d1ced..9473d60ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -25,6 +25,9 @@ [try-ciphers.sh] add hmac-ripemd160-etm@openssh.com - (djm) [mac.c] fix merge botch + - (djm) [regress/Makefile regress/integrity.sh] Make the integrity.sh test + work on platforms without 'jot' + - (djm) [regress/integrity.sh] Fix awk quoting, packet length skip 20121207 - (dtucker) OpenBSD CVS Sync diff --git a/regress/integrity.sh b/regress/integrity.sh index f6e5c1963..0185490c1 100644 --- a/regress/integrity.sh +++ b/regress/integrity.sh @@ -19,9 +19,9 @@ macs="hmac-sha1 hmac-md5 umac-64@openssh.com umac-128@openssh.com cmd="sh ${SRC}/sshd-log-wrapper.sh ${SSHD} ${TEST_SSH_LOGFILE} -i -f $OBJ/sshd_proxy" jot() { - awk 'BEGIN { for (i = $2; i < $2 + $1; i++) { printf "%d\n", i } }' + awk "BEGIN { for (i = $2; i < $2 + $1; i++) { printf \"%d\n\", i } }" } -set -x + for m in $macs; do trace "test $tid: mac $m" elen=0 @@ -46,7 +46,7 @@ for m in $macs; do output=$(echo $output | tr -s '\r\n' '.') verbose "test $tid: $m @$off $output" case "$output" in - Bad?packet*) elen=$((elen+1)); skip=2;; + Bad?packet*) elen=$((elen+1)); skip=3;; Corrupted?MAC*) emac=$((emac+1)); skip=0;; padding*) epad=$((epad+1)); skip=0;; *) fail "unexpected error mac $m at $off";;