Commit 2e72d0a2c1 for bind

commit 2e72d0a2c1569ad31517e4c063925da6b8828b09
Author: Petr Špaček <pspacek@isc.org>
Date:   Thu Dec 3 10:28:06 2026 +0000

    Do not let record type names match longer type names

    An unterminated A also matches AAAA, and NSEC also matches NSEC3, so
    these checks could pass on the wrong record type.

diff --git a/bin/tests/system/synthfromdnssec/tests.sh b/bin/tests/system/synthfromdnssec/tests.sh
index 45d651ed59..a84ed05201 100644
--- a/bin/tests/system/synthfromdnssec/tests.sh
+++ b/bin/tests/system/synthfromdnssec/tests.sh
@@ -73,7 +73,7 @@ check_nosynth_a() (
 check_synth_aaaa() (
   name=$(echo "$1" | sed 's/\./\\./g')
   grep "^${name}.*[0-9]*.IN.AAAA" ${2} >/dev/null || return 1
-  grep "^${name}.*3600.IN.A" ${2} >/dev/null && return 1
+  grep "^${name}.*3600.IN.AAAA" ${2} >/dev/null && return 1
   return 0
 )

@@ -298,7 +298,7 @@ for ns in 2 4 5 6; do
   check_ad_flag $ad dig.out.ns${ns}.test$n || ret=1
   check_status NXDOMAIN dig.out.ns${ns}.test$n || ret=1
   check_nosynth_soa minimal. dig.out.ns${ns}.test$n || ret=1
-  grep "nxdomaia.minimal.*3600.IN.NSEC.nxdomaiz.minimal. RRSIG NSEC" dig.out.ns${ns}.test$n >/dev/null || ret=1
+  grep -w "nxdomaia.minimal.*3600.IN.NSEC.nxdomaiz.minimal. RRSIG NSEC" dig.out.ns${ns}.test$n >/dev/null || ret=1
   [ $ns -eq 2 ] && cp dig.out.ns${ns}.test$n minimal.nxdomain.out
   n=$((n + 1))
   if [ $ret != 0 ]; then echo_i "failed"; fi
@@ -310,7 +310,7 @@ for ns in 2 4 5 6; do
   check_ad_flag $ad dig.out.ns${ns}.test$n || ret=1
   check_status NOERROR dig.out.ns${ns}.test$n || ret=1
   check_nosynth_soa minimal. dig.out.ns${ns}.test$n || ret=1
-  grep 'black.minimal.*3600.IN.NSEC.\\000.black.minimal. RRSIG NSEC' dig.out.ns${ns}.test$n >/dev/null || ret=1
+  grep -w 'black.minimal.*3600.IN.NSEC.\\000.black.minimal. RRSIG NSEC' dig.out.ns${ns}.test$n >/dev/null || ret=1
   [ $ns -eq 2 ] && cp dig.out.ns${ns}.test$n black.out
   n=$((n + 1))
   if [ $ret != 0 ]; then echo_i "failed"; fi
@@ -448,7 +448,7 @@ for ns in 2 4 5 6; do
     check_nosynth_cname b.wild-cname.example. dig.out.ns${ns}.test$n || ret=1
     nextpart ns1/named.run | grep b.wild-cname.example/A >/dev/null || ret=1
   fi
-  grep "ns1.example.*.IN.A" dig.out.ns${ns}.test$n >/dev/null || ret=1
+  grep -w "ns1.example.*.IN.A" dig.out.ns${ns}.test$n >/dev/null || ret=1
   digcomp wildcname.out dig.out.ns${ns}.test$n || ret=1
   n=$((n + 1))
   if [ $ret != 0 ]; then echo_i "failed"; fi
@@ -547,7 +547,7 @@ for ns in 2 4 5 6; do
   dig_with_opts b.wild-a.insecure.example. @10.53.0.${ns} a >dig.out.ns${ns}.test$n || ret=1
   check_ad_flag no dig.out.ns${ns}.test$n || ret=1
   check_status NOERROR dig.out.ns${ns}.test$n || ret=1
-  grep "b\.wild-a\.insecure\.example\..*3600.IN.A" dig.out.ns${ns}.test$n >/dev/null || ret=1
+  grep -w "b\.wild-a\.insecure\.example\..*3600.IN.A" dig.out.ns${ns}.test$n >/dev/null || ret=1
   nextpart ns1/named.run | grep b.wild-a.insecure.example/A >/dev/null || ret=1
   digcomp insecure.wild.out dig.out.ns${ns}.test$n || ret=1
   n=$((n + 1))
@@ -562,7 +562,7 @@ for ns in 2 4 5 6; do
   check_status NOERROR dig.out.ns${ns}.test$n || ret=1
   check_nosynth_cname b.wild-cname.insecure.example dig.out.ns${ns}.test$n || ret=1
   nextpart ns1/named.run | grep b.wild-cname.insecure.example/A >/dev/null || ret=1
-  grep "ns1.insecure.example.*.IN.A" dig.out.ns${ns}.test$n >/dev/null || ret=1
+  grep -w "ns1.insecure.example.*.IN.A" dig.out.ns${ns}.test$n >/dev/null || ret=1
   digcomp insecure.wildcname.out dig.out.ns${ns}.test$n || ret=1
   n=$((n + 1))
   if [ $ret != 0 ]; then echo_i "failed"; fi