mirror of
https://github.com/openbsd/src.git
synced 2026-06-18 07:13:36 +02:00
the new configuration dump code emits configuration directives with
capitalisation (previously they were all lowercase), so make the tests that consume them insensitive to case
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user