]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
master: Give an error if login_dir = base_dir.
authorTimo Sirainen <tss@iki.fi>
Mon, 2 Feb 2009 17:27:56 +0000 (12:27 -0500)
committerTimo Sirainen <tss@iki.fi>
Mon, 2 Feb 2009 17:27:56 +0000 (12:27 -0500)
--HG--
branch : HEAD

src/master/master-settings.c

index 078edc143e88f001d12e7125df4bfc82408d905d..39ad71a958e084c521d3a13951520459d82661b7 100644 (file)
@@ -878,6 +878,10 @@ static bool settings_verify(struct settings *set)
                i_error("max_mail_processes must be at least 1");
                return FALSE;
        }
+       if (strcmp(set->login_dir, set->base_dir) == 0) {
+               i_error("login_dir can't be the same as base_dir");
+               return FALSE;
+       }
 
        if (set->last_valid_uid != 0 &&
            set->first_valid_uid > set->last_valid_uid) {