From 09cdc875bf865de2ca70c713d4800c87220549bd Mon Sep 17 00:00:00 2001 From: dtucker Date: Wed, 21 Aug 2024 10:33:27 +0000 Subject: [PATCH] Some awks won't match on the \r so delete it instead. Fixes regress in portable on, eg Solaris. --- regress/usr.bin/ssh/rekey.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/regress/usr.bin/ssh/rekey.sh b/regress/usr.bin/ssh/rekey.sh index 79e52f2a991..53f74baaae9 100644 --- a/regress/usr.bin/ssh/rekey.sh +++ b/regress/usr.bin/ssh/rekey.sh @@ -1,4 +1,4 @@ -# $OpenBSD: rekey.sh,v 1.27 2024/08/21 06:59:08 dtucker Exp $ +# $OpenBSD: rekey.sh,v 1.28 2024/08/21 10:33:27 dtucker Exp $ # Placed in the Public Domain. tid="rekey" @@ -43,8 +43,8 @@ ssh_data_rekeying() case "$_kexopt" in KexAlgorithms*) _want=`echo $_kexopt | cut -f2 -d=` - _got=`awk 'BEGIN{FS="[ \r]+"} /kex: algorithm: /{print $4}' \ - ${LOG} | sort -u` + _got=`awk '/kex: algorithm: /{print $4}' ${LOG} | \ + tr -d '\r' | sort -u` if [ "$_want" != "$_got" ]; then fail "expected kex $_want, got $_got" fi -- 2.20.1