From: Timo Sirainen Date: Sat, 15 Nov 2008 17:14:41 +0000 (+0200) Subject: If auth process count > 0 and auth sockets are defined, give an understandable error... X-Git-Tag: 1.2.alpha4~86 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f4c1a9ab3820e90f589efdde45a8c934bc847fc;p=thirdparty%2Fdovecot%2Fcore.git If auth process count > 0 and auth sockets are defined, give an understandable error message. --HG-- branch : HEAD --- diff --git a/src/master/master-settings.c b/src/master/master-settings.c index 85c8b6cdd4..0a4593d516 100644 --- a/src/master/master-settings.c +++ b/src/master/master-settings.c @@ -478,6 +478,11 @@ static bool auth_settings_verify(struct auth_settings *auth) } 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); }