Disallow $INCLUDE for secondary zones. This matches the change

in the code repository, and is meant for after merge of the
simdzone change.
This commit is contained in:
W.C.A. Wijngaards
2026-06-16 09:32:24 +02:00
parent 9735e34f89
commit d67ca6bfed
+5 -1
View File
@@ -1687,7 +1687,11 @@ az_parse_include(zone_parser_t *parser, const char *file,
{
struct az_parse_state* state = (struct az_parse_state*)user_data;
(void)parser;
(void)state;
if(state->z->zone_is_slave) {
/* A $INCLUDE is not expected for a secondary zone. */
log_err("$INCLUDE not allowed for secondary zone");
return ZONE_SEMANTIC_ERROR;
}
verbose(6, "zone parse descended into include file %s (full path %s)",
file, path);
return 0;