a2a915
From d5ca0a8f5d31dad4e77bdb8316853f703e68b60f Mon Sep 17 00:00:00 2001
a2a915
From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
a2a915
Date: Tue, 29 Jan 2019 21:26:33 +0100
a2a915
Subject: [PATCH 4/5] Accept dnssec-lookaside yes;
a2a915
a2a915
Thread it the same way as "auto" value. Print a warning and ignore it.
a2a915
---
a2a915
 bin/named/server.c | 3 ++-
a2a915
 lib/bind9/check.c  | 8 +++++---
a2a915
 2 files changed, 7 insertions(+), 4 deletions(-)
a2a915
a2a915
diff --git a/bin/named/server.c b/bin/named/server.c
a2a915
index 0c8939d..93f9417 100644
a2a915
--- a/bin/named/server.c
a2a915
+++ b/bin/named/server.c
a2a915
@@ -4615,7 +4615,8 @@ configure_view(dns_view_t *view, dns_viewlist_t *viewlist,
a2a915
 			/* If "no", skip; if "auto", log warning */
a2a915
 			if (!strcasecmp(dom, "no")) {
a2a915
 				result = ISC_R_NOTFOUND;
a2a915
-			} else if (!strcasecmp(dom, "auto")) {
a2a915
+			} else if (!strcasecmp(dom, "auto")
a2a915
+			           || !strcasecmp(dom, "yes")) {
a2a915
 				/*
a2a915
 				 * Warning logged by libbind9.
a2a915
 				 */
a2a915
diff --git a/lib/bind9/check.c b/lib/bind9/check.c
a2a915
index 1a3d534..f075de0 100644
a2a915
--- a/lib/bind9/check.c
a2a915
+++ b/lib/bind9/check.c
a2a915
@@ -1176,11 +1176,13 @@ check_options(const cfg_obj_t *options, isc_log_t *logctx, isc_mem_t *mctx,
a2a915
 				if (!strcasecmp(dlv, "no")) {
a2a915
 					continue;
a2a915
 				}
a2a915
-				if (!strcasecmp(dlv, "auto")) {
a2a915
+				if (!strcasecmp(dlv, "auto")
a2a915
+				    || !strcasecmp(dlv, "yes")) {
a2a915
 					cfg_obj_log(obj, logctx,
a2a915
 						    ISC_LOG_WARNING,
a2a915
-						    "dnssec-lookaside 'auto' "
a2a915
-						    "is no longer supported");
a2a915
+						    "dnssec-lookaside '%s' "
a2a915
+						    "is no longer supported",
a2a915
+					            dlv);
a2a915
 					continue;
a2a915
 				}
a2a915
 			}
a2a915
-- 
a2a915
2.20.1
a2a915