]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: the new configuration dump code emits configuration
authordjm@openbsd.org <djm@openbsd.org>
Sun, 31 May 2026 11:31:57 +0000 (11:31 +0000)
committerDamien Miller <djm@mindrot.org>
Sun, 31 May 2026 12:23:41 +0000 (22:23 +1000)
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
regress/cfgmatch.sh

index 26e0c9910c47ab93d60efde373ccad9390a94613..b743c7d558efac323950bc135e982e85e7c7db4a 100644 (file)
@@ -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
index d627c37a3fa7900ebe4e4cc1f7d17c932477dc4e..bdd4e7a43e03e21cf527317183498f0c674850ba 100644 (file)
@@ -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