From: Manuel Mausz Date: Tue, 9 Jun 2026 12:40:41 +0000 (+0200) Subject: auth: declare enable-lua-record-updates unconditionally X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=26fd9345c329e91c002dba20ff99a0943dd44b71;p=thirdparty%2Fpdns.git auth: declare enable-lua-record-updates unconditionally The Lua record update restrictions added in #17131 rely on the enable-lua-record-updates setting. When built without Lua record support, this setting is not defined, causing errors like: Undefined but needed argument: 'enable-lua-record-updates' Add the setting unconditionally. Signed-off-by: Manuel Mausz --- diff --git a/pdns/auth-main.cc b/pdns/auth-main.cc index aa0d18e936..f0601d91e6 100644 --- a/pdns/auth-main.cc +++ b/pdns/auth-main.cc @@ -324,7 +324,6 @@ static void declareArguments() ::arg().setSwitch("8bit-dns", "Allow 8bit dns queries") = "no"; #ifdef HAVE_LUA_RECORDS ::arg().setSwitch("enable-lua-records", "Process Lua records for all zones (metadata overrides this)") = "no"; - ::arg().setSwitch("enable-lua-record-updates", "Allow updates to Lua records") = "no"; ::arg().setSwitch("lua-records-insert-whitespace", "Insert whitespace when combining Lua chunks") = "no"; ::arg().set("lua-records-exec-limit", "Lua records scripts execution limit (instructions count). Values <= 0 mean no limit") = "1000"; ::arg().set("lua-health-checks-expire-delay", "Stops doing health checks after the record hasn't been used for that delay (in seconds)") = "3600"; @@ -359,6 +358,9 @@ static void declareArguments() ::arg().setSwitch("views", "Enable views (variants) of zones, for backends which support them") = "no"; + // Needed by Lua backend + ::arg().setSwitch("enable-lua-record-updates", "Allow updates to Lua records") = "no"; + // FIXME520: remove when branching 5.2 ::arg().set("entropy-source", "") = ""; ::arg().set("rng", "") = "";