mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 23:25:38 +00:00
[master] remove no-longer-needed check for nonexistence
This commit is contained in:
@@ -6908,6 +6908,7 @@ static isc_result_t
|
|||||||
count_newzones(dns_view_t *view, ns_cfgctx_t *nzcfg, int *num_zonesp) {
|
count_newzones(dns_view_t *view, ns_cfgctx_t *nzcfg, int *num_zonesp) {
|
||||||
isc_result_t result;
|
isc_result_t result;
|
||||||
|
|
||||||
|
/* The new zone file may not exist. That is OK. */
|
||||||
if (!isc_file_exists(view->new_zone_file)) {
|
if (!isc_file_exists(view->new_zone_file)) {
|
||||||
*num_zonesp = 0;
|
*num_zonesp = 0;
|
||||||
return (ISC_R_SUCCESS);
|
return (ISC_R_SUCCESS);
|
||||||
@@ -6934,11 +6935,6 @@ count_newzones(dns_view_t *view, ns_cfgctx_t *nzcfg, int *num_zonesp) {
|
|||||||
view->new_zone_file, num_zones);
|
view->new_zone_file, num_zones);
|
||||||
if (num_zonesp != NULL)
|
if (num_zonesp != NULL)
|
||||||
*num_zonesp = num_zones;
|
*num_zonesp = num_zones;
|
||||||
} else if (result == ISC_R_FILENOTFOUND) {
|
|
||||||
/* The new zone file may not exist. That is OK. */
|
|
||||||
result = ISC_R_SUCCESS;
|
|
||||||
if (num_zonesp != NULL)
|
|
||||||
*num_zonesp = 0;
|
|
||||||
} else {
|
} else {
|
||||||
isc_log_write(named_g_lctx,
|
isc_log_write(named_g_lctx,
|
||||||
NAMED_LOGCATEGORY_GENERAL, NAMED_LOGMODULE_SERVER,
|
NAMED_LOGCATEGORY_GENERAL, NAMED_LOGMODULE_SERVER,
|
||||||
|
Reference in New Issue
Block a user