]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Bring back --rpz-log-qtype-qclass feature-test option
authorMichal Nowak <mnowak@isc.org>
Wed, 7 Oct 2020 09:24:16 +0000 (11:24 +0200)
committerMichal Nowak <mnowak@isc.org>
Wed, 7 Oct 2020 09:24:16 +0000 (11:24 +0200)
It was unintentionally removed during a backport.

bin/tests/system/feature-test.c

index 05882d10b0861b488a761a87b39f9d46aa262613..5e473ab570f427de12db894723662bb02e660910 100644 (file)
@@ -47,6 +47,7 @@ usage() {
        fprintf(stderr, "\t--have-geoip\n");
        fprintf(stderr, "\t--have-libxml2\n");
        fprintf(stderr, "\t--ipv6only=no\n");
+       fprintf(stderr, "\t--rpz-log-qtype-qclass\n");
        fprintf(stderr, "\t--rpz-nsdname\n");
        fprintf(stderr, "\t--rpz-nsip\n");
        fprintf(stderr, "\t--tsan\n");
@@ -177,6 +178,14 @@ main(int argc, char **argv) {
 #endif
        }
 
+       if (strcmp(argv[1], "--rpz-log-qtype-qclass") == 0) {
+#ifdef RPZ_LOG_QTYPE_QCLASS
+               return (0);
+#else
+               return (1);
+#endif
+       }
+
        if (strcmp(argv[1], "--rpz-nsdname") == 0) {
 #ifdef ENABLE_RPZ_NSDNAME
                return (0);