From 268c7ef56baf4d9eebb27be7b0c452b82e1e5199 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 4 Jul 2002 05:03:46 +0000 Subject: [PATCH] don't apply cache-filename to "_bind" view. --- bin/named/server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/named/server.c b/bin/named/server.c index 0cad3ff4dd..5cdcf31893 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: server.c,v 1.380 2002/06/26 04:48:12 marka Exp $ */ +/* $Id: server.c,v 1.381 2002/07/04 05:03:46 marka Exp $ */ #include @@ -650,7 +650,7 @@ configure_view(dns_view_t *view, cfg_obj_t *config, cfg_obj_t *vconfig, */ obj = NULL; result = ns_config_get(maps, "cache-file", &obj); - if (result == ISC_R_SUCCESS) { + if (result == ISC_R_SUCCESS && strcmp(view->name, "_bind") != 0) { CHECK(dns_cache_setfilename(cache, cfg_obj_asstring(obj))); if (!reused_cache) CHECK(dns_cache_load(cache));