bind9/bin/named
JINMEI Tatuya fb2267ad99 ensure rndc modzone succeeds twice for a zone in named.conf
If a zone is in named.conf, not originally added by rndc addzone,
rndc modzone for that zone succeeds once, but subsequent modzone
attempts fail. This is because do_modzone removes the zone config
from global or view options, but it would fail due to 'not found'
once the config is removed.

The fix is to ensure re-adding the updated zone config to the
global or view options. This also works as a more complete fix
for the issue 85453d3 atempted to solve, ensuring rndc showzone
shows the latest config: it now works for multple attemps of
modzone, and with named that is not built with LMDB.

The change in this commit relies on UNCONST in a few places.
That's not clean, but 'add/mod/delzone' generally seems to
need it (for example, delete_zoneconf uses it to modify the list
of zones). In that sense, this change follows the convention
(for a longer term, there may have to be a better API so that we
can modify config obtions that were once parsed).

(cherry picked from commit f2115e9d58)
2026-03-25 14:48:41 +00:00
..
include Remove named_g_sessionkey and named_g_sessionkeyname 2024-11-07 02:18:52 +00:00
.gitignore Complete rewrite the BIND 9 build system 2020-04-21 14:19:48 +02:00
bind9.xsl add an update quota 2023-01-12 12:02:35 +01:00
builtin.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
config.c Fix the default interface-interval docs and default value 2025-07-01 12:15:11 +02:00
control.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
controlconf.c standardize CHECK and RETERR macros 2025-12-03 19:18:12 -08:00
dlz_dlopen_driver.c Use clang-format-20 to update formatting 2025-06-25 13:59:44 +10:00
fuzz.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
geoip.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
log.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
logconf.c standardize CHECK and RETERR macros 2025-12-03 19:18:12 -08:00
main.c Set name for all the isc_mem context 2025-05-29 05:42:56 +02:00
Makefile.am Remove auto-generated rst files in repo in favour of grammar pretty printer 2022-07-01 10:20:56 +02:00
named.conf.rst Add note that named.conf man page is not a complete manual 2022-07-01 10:21:06 +02:00
named.rst Finalize removal of memory debug flags size and mctx 2025-02-17 16:48:43 +00:00
os.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
server.c ensure rndc modzone succeeds twice for a zone in named.conf 2026-03-25 14:48:41 +00:00
statschannel.c Use clang-format-22 to update formatting 2026-03-04 12:24:53 +01:00
tkeyconf.c standardize CHECK and RETERR macros 2025-12-03 19:18:12 -08:00
transportconf.c standardize CHECK and RETERR macros 2025-12-03 19:18:12 -08:00
tsigconf.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
xsl_p.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
zoneconf.c standardize CHECK and RETERR macros 2025-12-03 19:18:12 -08:00