]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
don't apply cache-filename to "_bind" view.
authorMark Andrews <marka@isc.org>
Thu, 4 Jul 2002 05:03:46 +0000 (05:03 +0000)
committerMark Andrews <marka@isc.org>
Thu, 4 Jul 2002 05:03:46 +0000 (05:03 +0000)
bin/named/server.c

index 0cad3ff4dd7c24ac60eb8df841bbe8bcf738d3b6..5cdcf318937ffa96a6c00d984b8ea2edbf4ceb76 100644 (file)
@@ -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 <config.h>
 
@@ -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));