]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mail_storage_service*() chdired to base_dir instead of user's home dir.
authorTimo Sirainen <tss@iki.fi>
Fri, 29 May 2009 22:05:43 +0000 (18:05 -0400)
committerTimo Sirainen <tss@iki.fi>
Fri, 29 May 2009 22:05:43 +0000 (18:05 -0400)
--HG--
branch : HEAD

src/lib-storage/mail-storage-service.c

index 44e97e3fff1f70698742ea37bea1038323862a08..66fb10756ef32c15580774409ffa9282526130f2 100644 (file)
@@ -366,7 +366,7 @@ mail_storage_service_init_post(struct master_service *service,
        } else if (*home != '\0') {
                /* If possible chdir to home directory, so that core file
                   could be written in case we crash. */
-               if (chdir(user_set->base_dir) < 0) {
+               if (chdir(home) < 0) {
                        if (errno != ENOENT)
                                i_error("chdir(%s) failed: %m", home);
                        else if (mail_set->mail_debug)