From afd2f40b3cff8c3c307155bdc27e5b60e9115545 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Wed, 13 Sep 2000 20:49:40 +0000 Subject: [PATCH] 452. [bug] Warn if the unimplemented option statistics-file is specified in named.conf. [RT #301] --- CHANGES | 5 ++++- lib/dns/config/confctx.c | 10 +++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 63bbc7bae8..b54ee8b4f7 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,7 @@ - 451 [func] Update forwarding implememted. + 452. [bug] Warn if the unimplemented option "statistics-file" + is specified in named.conf. [RT #301] + + 451. [func] Update forwarding implememted. 450. [func] New function ns_client_sendraw(). diff --git a/lib/dns/config/confctx.c b/lib/dns/config/confctx.c index 7ab2f37302..5ce089151e 100644 --- a/lib/dns/config/confctx.c +++ b/lib/dns/config/confctx.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: confctx.c,v 1.86 2000/09/07 19:24:33 halley Exp $ */ +/* $Id: confctx.c,v 1.87 2000/09/13 20:49:40 gson Exp $ */ #include @@ -359,6 +359,14 @@ dns_c_checkconfig(dns_c_ctx_t *cfg) } + if (dns_c_ctx_getstatsfilename(cfg, &cpval) != ISC_R_NOTFOUND) { + isc_log_write(dns_lctx,DNS_LOGCATEGORY_CONFIG, + DNS_LOGMODULE_CONFIG, ISC_LOG_WARNING, + "option 'statistics-file' is not yet " + "implemented"); + } + + if (dns_c_ctx_getmemstatsfilename(cfg, &cpval) != ISC_R_NOTFOUND) { isc_log_write(dns_lctx,DNS_LOGCATEGORY_CONFIG, DNS_LOGMODULE_CONFIG, ISC_LOG_WARNING,