]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
master: Make sure config reload never causes execing doveconf
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 12 Dec 2022 23:10:02 +0000 (01:10 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Fri, 27 Jan 2023 13:01:47 +0000 (13:01 +0000)
This could have happened if there was an error reading configuration
via config socket. This would have caused master process to restart,
which would have messed up everything.

src/master/main.c

index e12b694e32bc2c325c3597b5b3493742353d00b6..f4835a3ab9814fe83fb8a2da58da6145a550d42c 100644 (file)
@@ -419,6 +419,7 @@ sig_settings_reload(const siginfo_t *si ATTR_UNUSED,
        input.roots = set_roots;
        input.module = MASTER_SERVICE_NAME;
        input.config_path = services_get_config_socket_path(services);
+       input.never_exec = TRUE;
        if (master_service_settings_read(master_service, &input,
                                         &output, &error) < 0) {
                i_error("Error reading configuration: %s", error);