]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-master: -O parameter shouldn't read settings from environment
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 29 Nov 2022 18:46:28 +0000 (20:46 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Fri, 27 Jan 2023 13:01:47 +0000 (13:01 +0000)
The -O parameter should start with the default configuration only. This
seems to have been an accidental bug, which was just never noticed.

src/lib-master/master-service-settings.c

index 2f75197f0a729ae35f6c42307582cc629c1ab4e7..d09dec38b24a56f3b371e442ed75242a9306bc5a 100644 (file)
@@ -676,7 +676,8 @@ int master_service_settings_read(struct master_service *service,
                        i_close_fd(&fd);
                use_environment = FALSE;
        } else {
-               use_environment = TRUE;
+               use_environment = (service->flags &
+                                  MASTER_SERVICE_FLAG_NO_CONFIG_SETTINGS) == 0;
        }
 
        if (use_environment || service->keep_environment) {