]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Do not warn about lock-file option change when -X is used
authorAram Sargsyan <aram@isc.org>
Thu, 26 Oct 2023 12:28:25 +0000 (12:28 +0000)
committerAram Sargsyan <aram@isc.org>
Thu, 26 Oct 2023 12:34:15 +0000 (12:34 +0000)
When -X is used the 'lock-file' option change detection condition
is invalid, because it compares the 'lock-file' option's value to
the '-X' argument's value instead of the older 'lock-file' option
value (which was ignored because of '-X').

Don't warn about changing 'lock-file' option if '-X' is used.

bin/named/server.c

index a6b2c2be9b16bb5be53e5893e82024d0cbb05d08..15bcfa7ffa29b5af4104f1f3b196ec7ee2460c79 100644 (file)
@@ -8152,7 +8152,7 @@ check_lockfile(named_server_t *server, const cfg_obj_t *config,
 
        if (!first_time) {
                if (obj != NULL && cfg_obj_isstring(obj) &&
-                   server->lockfile != NULL &&
+                   server->lockfile != NULL && !named_g_forcelock &&
                    strcmp(cfg_obj_asstring(obj), server->lockfile) != 0)
                {
                        isc_log_write(named_g_lctx, NAMED_LOGCATEGORY_GENERAL,