2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 22:45:39 +00:00

2889. [bug] Element of the grammar where not properly reported.

[RT #21046]
This commit is contained in:
Mark Andrews
2010-05-13 03:16:55 +00:00
parent 49560ac770
commit e12030c433
2 changed files with 15 additions and 12 deletions

View File

@@ -1,3 +1,6 @@
2889. [bug] Element of the grammar where not properly reported.
[RT #21046]
2888. [bug] Only the first EDNS option was displayed. [RT #21273] 2888. [bug] Only the first EDNS option was displayed. [RT #21273]
2887. [bug] Report the keytag times in UTC in the .key file, 2887. [bug] Report the keytag times in UTC in the .key file,

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: namedconf.c,v 1.113 2009/12/04 21:09:34 marka Exp $ */ /* $Id: namedconf.c,v 1.114 2010/05/13 03:16:55 marka Exp $ */
/*! \file */ /*! \file */
@@ -383,9 +383,9 @@ parse_updatepolicy(cfg_parser_t *pctx, const cfg_type_t *type,
static void static void
doc_updatepolicy(cfg_printer_t *pctx, const cfg_type_t *type) { doc_updatepolicy(cfg_printer_t *pctx, const cfg_type_t *type) {
cfg_print_chars(pctx, "( local | { ", 12); cfg_print_cstr(pctx, "( local | { ");
cfg_doc_obj(pctx, type->of); cfg_doc_obj(pctx, type->of);
cfg_print_chars(pctx, "; ... }", 7); cfg_print_cstr(pctx, "; ... }");
} }
/*% /*%
@@ -612,7 +612,7 @@ static cfg_type_t cfg_type_transferformat = {
static void static void
print_none(cfg_printer_t *pctx, const cfg_obj_t *obj) { print_none(cfg_printer_t *pctx, const cfg_obj_t *obj) {
UNUSED(obj); UNUSED(obj);
cfg_print_chars(pctx, "none", 4); cfg_print_cstr(pctx, "none");
} }
static cfg_type_t cfg_type_none = { static cfg_type_t cfg_type_none = {
@@ -641,7 +641,7 @@ parse_qstringornone(cfg_parser_t *pctx, const cfg_type_t *type,
static void static void
doc_qstringornone(cfg_printer_t *pctx, const cfg_type_t *type) { doc_qstringornone(cfg_printer_t *pctx, const cfg_type_t *type) {
UNUSED(type); UNUSED(type);
cfg_print_chars(pctx, "( <quoted_string> | none )", 26); cfg_print_cstr(pctx, "( <quoted_string> | none )");
} }
static cfg_type_t cfg_type_qstringornone = { static cfg_type_t cfg_type_qstringornone = {
@@ -656,7 +656,7 @@ static cfg_type_t cfg_type_qstringornone = {
static void static void
print_hostname(cfg_printer_t *pctx, const cfg_obj_t *obj) { print_hostname(cfg_printer_t *pctx, const cfg_obj_t *obj) {
UNUSED(obj); UNUSED(obj);
cfg_print_chars(pctx, "hostname", 4); cfg_print_cstr(pctx, "hostname");
} }
static cfg_type_t cfg_type_hostname = { static cfg_type_t cfg_type_hostname = {
@@ -689,7 +689,7 @@ parse_serverid(cfg_parser_t *pctx, const cfg_type_t *type,
static void static void
doc_serverid(cfg_printer_t *pctx, const cfg_type_t *type) { doc_serverid(cfg_printer_t *pctx, const cfg_type_t *type) {
UNUSED(type); UNUSED(type);
cfg_print_chars(pctx, "( <quoted_string> | none | hostname )", 26); cfg_print_cstr(pctx, "( <quoted_string> | none | hostname )");
} }
static cfg_type_t cfg_type_serverid = { static cfg_type_t cfg_type_serverid = {
@@ -1087,7 +1087,7 @@ parse_optional_uint32(cfg_parser_t *pctx, const cfg_type_t *type,
static void static void
doc_optional_uint32(cfg_printer_t *pctx, const cfg_type_t *type) { doc_optional_uint32(cfg_printer_t *pctx, const cfg_type_t *type) {
UNUSED(type); UNUSED(type);
cfg_print_chars(pctx, "[ <integer> ]", 13); cfg_print_cstr(pctx, "[ <integer> ]");
} }
static cfg_type_t cfg_type_optional_uint32 = { static cfg_type_t cfg_type_optional_uint32 = {
@@ -1853,9 +1853,9 @@ static void
print_querysource(cfg_printer_t *pctx, const cfg_obj_t *obj) { print_querysource(cfg_printer_t *pctx, const cfg_obj_t *obj) {
isc_netaddr_t na; isc_netaddr_t na;
isc_netaddr_fromsockaddr(&na, &obj->value.sockaddr); isc_netaddr_fromsockaddr(&na, &obj->value.sockaddr);
cfg_print_chars(pctx, "address ", 8); cfg_print_cstr(pctx, "address ");
cfg_print_rawaddr(pctx, &na); cfg_print_rawaddr(pctx, &na);
cfg_print_chars(pctx, " port ", 6); cfg_print_cstr(pctx, " port ");
cfg_print_rawuint(pctx, isc_sockaddr_getport(&obj->value.sockaddr)); cfg_print_rawuint(pctx, isc_sockaddr_getport(&obj->value.sockaddr));
} }
@@ -2153,11 +2153,11 @@ static void
print_logfile(cfg_printer_t *pctx, const cfg_obj_t *obj) { print_logfile(cfg_printer_t *pctx, const cfg_obj_t *obj) {
cfg_print_obj(pctx, obj->value.tuple[0]); /* file */ cfg_print_obj(pctx, obj->value.tuple[0]); /* file */
if (obj->value.tuple[1]->type->print != cfg_print_void) { if (obj->value.tuple[1]->type->print != cfg_print_void) {
cfg_print_chars(pctx, " versions ", 10); cfg_print_cstr(pctx, " versions ");
cfg_print_obj(pctx, obj->value.tuple[1]); cfg_print_obj(pctx, obj->value.tuple[1]);
} }
if (obj->value.tuple[2]->type->print != cfg_print_void) { if (obj->value.tuple[2]->type->print != cfg_print_void) {
cfg_print_chars(pctx, " size ", 6); cfg_print_cstr(pctx, " size ");
cfg_print_obj(pctx, obj->value.tuple[2]); cfg_print_obj(pctx, obj->value.tuple[2]);
} }
} }