dovecot-2.1: doveadm config: Don't fail on invalid config (e.g. ...

dovecot at dovecot.org dovecot at dovecot.org
Sat Mar 10 15:07:31 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/4a82ff720781
changeset: 14282:4a82ff720781
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Mar 10 15:07:23 2012 +0200
description:
doveadm config: Don't fail on invalid config (e.g. plugin not found)
This command is often used in init scripts and such to stop/restart Dovecot.

diffstat:

 src/doveadm/doveadm.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 30802a608490 -r 4a82ff720781 src/doveadm/doveadm.c
--- a/src/doveadm/doveadm.c	Sat Mar 10 15:03:11 2012 +0200
+++ b/src/doveadm/doveadm.c	Sat Mar 10 15:07:23 2012 +0200
@@ -331,6 +331,7 @@
 		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


More information about the dovecot-cvs mailing list