]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2042. [bug] named-checkconf was incorrectly rejecting the
authorMark Andrews <marka@isc.org>
Wed, 7 Jun 2006 02:28:28 +0000 (02:28 +0000)
committerMark Andrews <marka@isc.org>
Wed, 7 Jun 2006 02:28:28 +0000 (02:28 +0000)
                        logging category "config". [RT #16117]

CHANGES
bin/check/Makefile.in
bin/check/check-tool.c
bin/named/log.c

diff --git a/CHANGES b/CHANGES
index 29f23a1afe95d8e70111950367fdc089f8259b20..f72baa66fa188a678f2ac7c5f7647be40c67d328 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+2042.  [bug]           named-checkconf was incorrectly rejecting the
+                       logging category "config". [RT #16117]
+
 2041.  [bug]           "configure --with-dlz-bdb=yes" produced a bad
                        set of libraries to be linked. [RT #16129]
 
index 84c76e1b586c70d85d3417af7c76c00c2837cd19..b0feea0a14aa0760bdd865788869550ca074e809 100644 (file)
@@ -13,7 +13,7 @@
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: Makefile.in,v 1.28 2005/09/12 02:16:29 marka Exp $
+# $Id: Makefile.in,v 1.29 2006/06/07 02:28:28 marka Exp $
 
 srcdir =       @srcdir@
 VPATH =                @srcdir@
@@ -75,7 +75,8 @@ named-checkconf@EXEEXT@: named-checkconf.@O@ check-tool.@O@ ${ISCDEPLIBS} \
 
 named-checkzone@EXEEXT@: named-checkzone.@O@ check-tool.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
        ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
-       named-checkzone.@O@ check-tool.@O@ ${DNSLIBS} ${ISCLIBS} ${LIBS}
+       named-checkzone.@O@ check-tool.@O@ ${ISCCFGLIBS} ${DNSLIBS} \
+       ${ISCLIBS} ${LIBS}
 
 doc man:: ${MANOBJS}
 
index 560aff12c00fdf3812f08964f31c55dbb368d0f8..998a1516a0fa7e0a0816eedc6586738c5fd98899 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: check-tool.c,v 1.24 2006/01/07 00:23:35 marka Exp $ */
+/* $Id: check-tool.c,v 1.25 2006/06/07 02:28:28 marka Exp $ */
 
 /*! \file */
 
@@ -44,6 +44,8 @@
 #include <dns/types.h>
 #include <dns/zone.h>
 
+#include <isccfg/log.h>
+
 #ifdef HAVE_ADDRINFO
 #ifdef HAVE_GETADDRINFO
 #ifdef HAVE_GAISTRERROR
@@ -402,6 +404,7 @@ setup_logging(isc_mem_t *mctx, isc_log_t **logp) {
        isc_log_setcontext(log);
        dns_log_init(log);
        dns_log_setcontext(log);
+       cfg_log_init(log);
 
        destination.file.stream = stdout;
        destination.file.name = NULL;
index fb5ad506f2886e5247ed4bd5e0e87f0d742f5316..0ff5bdc0e09af4ce03f902d4e951287e22815970 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: log.c,v 1.41 2005/05/20 01:19:42 marka Exp $ */
+/* $Id: log.c,v 1.42 2006/06/07 02:28:28 marka Exp $ */
 
 /*! \file */
 
@@ -81,6 +81,9 @@ ns_log_init(isc_boolean_t safe) {
        if (result != ISC_R_SUCCESS)
                return (result);
 
+       /*
+        * named-checktool.c:setup_logging() needs to be kept in sync.
+        */
        isc_log_registercategories(ns_g_lctx, ns_g_categories);
        isc_log_registermodules(ns_g_lctx, ns_g_modules);
        isc_log_setcontext(ns_g_lctx);