dovecot-1.1: If auth process count > 0 and auth sockets are defi...

dovecot at dovecot.org dovecot at dovecot.org
Sat Nov 15 19:14:49 EET 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/ab868d7f8d11
changeset: 8007:ab868d7f8d11
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Nov 15 19:14:29 2008 +0200
description:
If auth process count > 0 and auth sockets are defined, give an understandable error message.

diffstat:

1 file changed, 5 insertions(+)
src/master/master-settings.c |    5 +++++

diffs (15 lines):

diff -r 7cd102d926bb -r ab868d7f8d11 src/master/master-settings.c
--- a/src/master/master-settings.c	Sat Nov 15 19:06:51 2008 +0200
+++ b/src/master/master-settings.c	Sat Nov 15 19:14:29 2008 +0200
@@ -476,6 +476,11 @@ static bool auth_settings_verify(struct 
 	}
 
 	for (s = auth->sockets; s != NULL; s = s->next) {
+		if (auth->count > 1 && strcmp(s->type, "listen") == 0) {
+			i_error("Currently auth process count must be 1 if "
+				"you're using auth socket listeners.");
+			return FALSE;
+		}
 		fix_base_path(auth->parent->defaults, &s->master.path);
 		fix_base_path(auth->parent->defaults, &s->client.path);
 	}


More information about the dovecot-cvs mailing list