diff --git a/regress/usr.bin/ssh/addrmatch.sh b/regress/usr.bin/ssh/addrmatch.sh index f753a4e2655..9e006cfc676 100644 --- a/regress/usr.bin/ssh/addrmatch.sh +++ b/regress/usr.bin/ssh/addrmatch.sh @@ -1,4 +1,4 @@ -# $OpenBSD: addrmatch.sh,v 1.6 2020/08/28 03:17:13 dtucker Exp $ +# $OpenBSD: addrmatch.sh,v 1.7 2026/05/31 11:31:57 djm Exp $ # Placed in the Public Domain. tid="address match" @@ -13,7 +13,7 @@ run_trial() verbose "test $descr for $user $addr $host" result=`${SSHD} -f $OBJ/sshd_proxy -T \ -C user=${user},addr=${addr},host=${host},laddr=${laddr},lport=${lport} | \ - awk '/^forcecommand/ {print $2}'` + awk 'tolower($1) ~ /^forcecommand/ {print $2}'` if [ "$result" != "$expected" ]; then fail "failed '$descr' expected $expected got $result" fi diff --git a/regress/usr.bin/ssh/cfgmatch.sh b/regress/usr.bin/ssh/cfgmatch.sh index d627c37a3fa..bdd4e7a43e0 100644 --- a/regress/usr.bin/ssh/cfgmatch.sh +++ b/regress/usr.bin/ssh/cfgmatch.sh @@ -1,4 +1,4 @@ -# $OpenBSD: cfgmatch.sh,v 1.17 2025/12/19 00:57:42 djm Exp $ +# $OpenBSD: cfgmatch.sh,v 1.18 2026/05/31 11:31:57 djm Exp $ # Placed in the Public Domain. tid="sshd_config match" @@ -155,7 +155,7 @@ EOD done trace "test spec $spec" result=`${SUDO} ${SSHD} -f $OBJ/sshd_config -T -C "$spec" | \ - awk '$1=="banner"{print $2}'` + awk 'tolower($1)=="banner"{print $2}'` if [ "$result" != "$expected" ]; then fail "match $config expected $expected got $result" fi