[openssh-commits] [openssh] 03/05: upstream: the new configuration dump code emits configuration
git+noreply at mindrot.org
git+noreply at mindrot.org
Sun May 31 22:29:12 AEST 2026
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit f2b815e42d9fd654cb457cd7e7d1cb751f1a5a33
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Sun May 31 11:31:57 2026 +0000
upstream: 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
OpenBSD-Regress-ID: 9a81d8501b8b8fc1c1a0d268d4cc91cbb19668f5
---
regress/addrmatch.sh | 4 ++--
regress/cfgmatch.sh | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/regress/addrmatch.sh b/regress/addrmatch.sh
index 26e0c9910..b743c7d55 100644
--- a/regress/addrmatch.sh
+++ b/regress/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/cfgmatch.sh b/regress/cfgmatch.sh
index d627c37a3..bdd4e7a43 100644
--- a/regress/cfgmatch.sh
+++ b/regress/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
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list