Skip to content

Commit

Permalink
upstream: Some awks won't match on the \r so delete it instead. Fixes
Browse files Browse the repository at this point in the history
regress in portable on, eg Solaris.

OpenBSD-Regress-ID: 44a96d6d2f8341d89b7d5fff777502b92ac9e9ba
  • Loading branch information
daztucker committed Aug 21, 2024
1 parent 51c96b6 commit 15ace43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions regress/rekey.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 15ace43

Please sign in to comment.