dovecot-2.0: config: service names had an extra "service=".

dovecot at dovecot.org dovecot at dovecot.org
Fri May 1 00:02:39 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/150a98d2407c
changeset: 9181:150a98d2407c
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Apr 30 17:02:33 2009 -0400
description:
config: service names had an extra "service=".

diffstat:

1 file changed, 5 insertions(+), 3 deletions(-)
src/config/config-connection.c |    8 +++++---

diffs (18 lines):

diff -r ea0b68301004 -r 150a98d2407c src/config/config-connection.c
--- a/src/config/config-connection.c	Thu Apr 30 16:17:56 2009 -0400
+++ b/src/config/config-connection.c	Thu Apr 30 17:02:33 2009 -0400
@@ -203,9 +203,11 @@ static void config_connection_request(st
 {
 	const char *service = "";
 
-	/* [<service> [<args>]] */
-	if (args[0] != NULL)
-		service = args[0];
+	/* [<args>] */
+	for (; *args != NULL; args++) {
+		if (strncmp(*args, "service=", 8) == 0)
+			service = *args + 8;
+	}
 
 	o_stream_cork(conn->output);
 	if ((flags & CONFIG_DUMP_FLAG_HUMAN) == 0) {


More information about the dovecot-cvs mailing list