Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
6f691d48
Commit
6f691d48
authored
Nov 22, 2004
by
Mark Andrews
Browse files
1770. [bug] named-checkconf failed to report missing a missing
file clause for rbt{64} master/hint zones. [RT#13009]
parent
fcdef14f
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
6f691d48
1770. [bug] named-checkconf failed to report missing a missing
file clause for rbt{64} master/hint zones. [RT#13009]
1769. [port] win32: change compiler flags /MTd ==> /MDd,
/MT ==> /MD.
...
...
lib/bind9/check.c
View file @
6f691d48
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: check.c,v 1.5
0
2004/11/
09 21:24:20
marka Exp $ */
/* $Id: check.c,v 1.5
1
2004/11/
22 05:03:11
marka Exp $ */
#include <config.h>
...
...
@@ -732,7 +732,7 @@ check_zoneconf(cfg_obj_t *zconfig, cfg_obj_t *config, isc_symtab_t *symtab,
{
"zone-statistics"
,
MASTERZONE
|
SLAVEZONE
|
STUBZONE
},
{
"allow-update"
,
MASTERZONE
},
{
"allow-update-forwarding"
,
SLAVEZONE
},
{
"file"
,
MASTERZONE
|
SLAVEZONE
|
STUBZONE
|
HINTZONE
},
{
"file"
,
MASTERZONE
|
SLAVEZONE
|
STUBZONE
|
HINTZONE
},
{
"journal"
,
MASTERZONE
|
SLAVEZONE
},
{
"ixfr-base"
,
MASTERZONE
|
SLAVEZONE
},
{
"ixfr-tmp-file"
,
MASTERZONE
|
SLAVEZONE
},
...
...
@@ -944,6 +944,27 @@ check_zoneconf(cfg_obj_t *zconfig, cfg_obj_t *config, isc_symtab_t *symtab,
if
(
tresult
!=
ISC_R_SUCCESS
)
result
=
tresult
;
/*
* If the zone type is rbt/rbt64 then master/hint zones
* require file clauses.
*/
obj
=
NULL
;
tresult
=
cfg_map_get
(
zoptions
,
"database"
,
&
obj
);
if
(
tresult
==
ISC_R_NOTFOUND
||
(
tresult
==
ISC_R_SUCCESS
&&
(
strcmp
(
"rbt"
,
cfg_obj_asstring
(
obj
))
==
0
||
strcmp
(
"rbt64"
,
cfg_obj_asstring
(
obj
))
==
0
)))
{
obj
=
NULL
;
tresult
=
cfg_map_get
(
zoptions
,
"file"
,
&
obj
);
if
(
tresult
!=
ISC_R_SUCCESS
&&
(
ztype
==
MASTERZONE
||
ztype
==
HINTZONE
))
{
cfg_obj_log
(
zconfig
,
logctx
,
ISC_LOG_ERROR
,
"zone '%s': missing 'file' entry"
,
zname
);
result
=
tresult
;
}
}
return
(
result
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment