From: Aram Sargsyan Date: Mon, 13 Apr 2026 12:02:31 +0000 (+0000) Subject: Treat '%' and '$' as special characters for catalog member zone names X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e30a535760878d39536f1c55fa9cb72e99f63c41;p=thirdparty%2Fbind9.git Treat '%' and '$' as special characters for catalog member zone names The filename of the catalog member zones are generated dynamically based on the zone's name. If the zone's name is too long or if it contains special characters the name's digest is used instead. Since '%' and '$' are now treated as special characters in the zone names (see !10779), add these characters to the list of the special characters. --- diff --git a/lib/dns/catz.c b/lib/dns/catz.c index fb4975a3d34..a100db8ebb2 100644 --- a/lib/dns/catz.c +++ b/lib/dns/catz.c @@ -1855,7 +1855,7 @@ dns_catz_generate_masterfilename(dns_catz_zone_t *catz, dns_catz_entry_t *entry, * remove it. */ isc_buffer_putuint8(tbuf, 0); - if (strpbrk(isc_buffer_base(tbuf), "\\/:") != NULL) { + if (strpbrk(isc_buffer_base(tbuf), "\\/:%$") != NULL) { special = true; } isc_buffer_subtract(tbuf, 1);