]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
If auth process count > 0 and auth sockets are defined, give an understandable error...
authorTimo Sirainen <tss@iki.fi>
Sat, 15 Nov 2008 17:14:41 +0000 (19:14 +0200)
committerTimo Sirainen <tss@iki.fi>
Sat, 15 Nov 2008 17:14:41 +0000 (19:14 +0200)
--HG--
branch : HEAD

src/master/master-settings.c

index 85c8b6cdd440807354fbbe9014de480b2451e63a..0a4593d516ff36ac78c29e71ad9573bd124e5b45 100644 (file)
@@ -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);
        }