From: Otto Moerbeek Date: Tue, 26 Nov 2024 10:49:33 +0000 (+0100) Subject: Apply suggestions from code review X-Git-Tag: rec-5.2.0-beta1^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F14886%2Fhead;p=thirdparty%2Fpdns.git Apply suggestions from code review Co-authored-by: Peter van Dijk --- diff --git a/pdns/recursordist/docs/manpages/rec_control.1.rst b/pdns/recursordist/docs/manpages/rec_control.1.rst index 1dd6fd5719..80b7791479 100644 --- a/pdns/recursordist/docs/manpages/rec_control.1.rst +++ b/pdns/recursordist/docs/manpages/rec_control.1.rst @@ -211,8 +211,8 @@ reload-lua-config [*FILENAME*] executed, any settings changed at runtime that are not modified in this file, will still be active. The effects of reloading do not always take place immediately, as some subsystems reload and replace configuration - in an asynchronous way. IF YAML settings are used this command will - reload the runtime settable parts of the YAML settings + in an asynchronous way. If YAML settings are used this command will + reload the runtime settable parts of the YAML settings. reload-yaml Reload the runtime settable parts of the YAML settings. diff --git a/pdns/recursordist/rec_channel_rec.cc b/pdns/recursordist/rec_channel_rec.cc index bf3ff8096a..d79e4c2d04 100644 --- a/pdns/recursordist/rec_channel_rec.cc +++ b/pdns/recursordist/rec_channel_rec.cc @@ -1996,7 +1996,7 @@ static RecursorControlChannel::Answer luaconfig(T begin, T end) { if (begin != end) { if (g_luaSettingsInYAML) { - return {1, "Unable to reload Lua script from '" + *begin + " as there is no active Lua configuration\n"}; + return {1, "Unable to reload Lua script from '" + *begin + "' as there is no active Lua configuration\n"}; } ::arg().set("lua-config-file") = *begin; }