From e5100b1367fbc5f31444b8a3f1e9b84092dc56d5 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Fri, 28 Sep 2001 18:19:34 +0000 Subject: [PATCH] report duplicate zones with file name and line number even if they are not caught by the configuration checking code, which is the case if they are spelled differently [RT #1806] --- bin/named/server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/named/server.c b/bin/named/server.c index 3b98eecdc9..c6426cf87f 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.347 2001/09/27 22:46:35 gson Exp $ */ +/* $Id: server.c,v 1.348 2001/09/28 18:19:34 gson Exp $ */ #include @@ -1345,6 +1345,8 @@ configure_zone(cfg_obj_t *config, cfg_obj_t *zconfig, cfg_obj_t *vconfig, /* * We already have this zone! */ + cfg_obj_log(zconfig, ns_g_lctx, ISC_LOG_ERROR, + "zone '%s' already exists", zname); dns_zone_detach(&dupzone); result = ISC_R_EXISTS; goto cleanup;