]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
support $INCLUDE in makejournal
authorEvan Hunt <each@isc.org>
Sat, 5 Feb 2022 00:52:22 +0000 (16:52 -0800)
committerEvan Hunt <each@isc.org>
Thu, 17 Feb 2022 20:03:05 +0000 (12:03 -0800)
bin/tests/system/makejournal needs to ignore DNS_R_SEENINCLUDE
when calling dns_db_load(), otherwise it cannot generate a journal
for a zone file with a $INCLUDE statement.

bin/tests/system/makejournal.c

index 63caa9ade63142171f52dab22bf01451ec271f20..1a7c43581ac71b2e923007ef713223bf7ae57b81 100644 (file)
@@ -75,6 +75,9 @@ loadzone(dns_db_t **db, const char *origin, const char *filename) {
        }
 
        result = dns_db_load(*db, filename, dns_masterformat_text, 0);
+       if (result == DNS_R_SEENINCLUDE) {
+               result = ISC_R_SUCCESS;
+       }
        return (result);
 }