Instead of hardcoding to the master_service->name, which may be different.
This fixes reading protocol sieve {} settings when if managesieve was
reading settings via doveconf (= executed from command line).
argv_max_count = 11 + (service->argc + 1) + 1;
conf_argv = t_new(const char *, argv_max_count);
conf_argv[i++] = DOVECOT_CONFIG_BIN_PATH;
- conf_argv[i++] = "-f";
- conf_argv[i++] = t_strconcat("service=", service->name, NULL);
+ if (input->service != NULL) {
+ conf_argv[i++] = "-f";
+ conf_argv[i++] = t_strconcat("service=", input->service, NULL);
+ }
conf_argv[i++] = "-c";
conf_argv[i++] = service->config_path;
if (input->module != NULL) {