]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm config: Don't fail on invalid config (e.g. plugin not found)
authorTimo Sirainen <tss@iki.fi>
Sat, 10 Mar 2012 13:07:23 +0000 (15:07 +0200)
committerTimo Sirainen <tss@iki.fi>
Sat, 10 Mar 2012 13:07:23 +0000 (15:07 +0200)
This command is often used in init scripts and such to stop/restart Dovecot.

src/doveadm/doveadm.c

index 092b1e4494f597561553eb5fed9489943c35f873..5a93e5b96af8979c4141b0732251e70b4b563a79 100644 (file)
@@ -331,6 +331,7 @@ int main(int argc, char *argv[])
                doveadm_register_cmd(doveadm_commands[i]);
 
        if (cmd_name != NULL && (quick_init ||
+                                strcmp(cmd_name, "config") == 0 ||
                                 strcmp(cmd_name, "stop") == 0 ||
                                 strcmp(cmd_name, "reload") == 0)) {
                /* special case commands: even if there is something wrong