Blame SOURCES/bind-9.11-rh1744081.patch

db4030
From f6b9f4dfa61038a353f3974ec7683231fa23ed21 Mon Sep 17 00:00:00 2001
db4030
From: Petr Mensik <pemensik@redhat.com>
db4030
Date: Wed, 11 Mar 2020 17:36:51 +0100
db4030
Subject: [PATCH] Allow conflicting files in zones, warn only
db4030
db4030
Change hard error to just annoying warning. Broken configuration is
db4030
still error, but it was possible before. Make it possible again.
db4030
Would be fixed by using in-view clause properly.
db4030
---
db4030
 lib/bind9/check.c | 4 ++--
db4030
 1 file changed, 2 insertions(+), 2 deletions(-)
db4030
db4030
diff --git a/lib/bind9/check.c b/lib/bind9/check.c
db4030
index 545e3c6..b02a894 100644
db4030
--- a/lib/bind9/check.c
db4030
+++ b/lib/bind9/check.c
db4030
@@ -2650,11 +2650,11 @@ fileexist(const cfg_obj_t *obj, isc_symtab_t *symtab, isc_boolean_t writeable,
db4030
 		if (writeable) {
db4030
 			file = cfg_obj_file(symvalue.as_cpointer);
db4030
 			line = cfg_obj_line(symvalue.as_cpointer);
db4030
-			cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
db4030
+			cfg_obj_log(obj, logctx, ISC_LOG_WARNING,
db4030
 				    "writeable file '%s': already in use: "
db4030
 				    "%s:%u", cfg_obj_asstring(obj),
db4030
 				    file, line);
db4030
-			return (ISC_R_EXISTS);
db4030
+			return (ISC_R_SUCCESS); // Pretend it is ok
db4030
 		}
db4030
 		result = isc_symtab_lookup(symtab, cfg_obj_asstring(obj), 2,
db4030
 					   &symvalue);
db4030
-- 
db4030
2.21.1
db4030