From: Timo Sirainen Date: Fri, 29 May 2009 22:05:43 +0000 (-0400) Subject: mail_storage_service*() chdired to base_dir instead of user's home dir. X-Git-Tag: 2.0.alpha1~645 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=573085b4b25b0bbae8d27969df2c91702eefa23e;p=thirdparty%2Fdovecot%2Fcore.git mail_storage_service*() chdired to base_dir instead of user's home dir. --HG-- branch : HEAD --- diff --git a/src/lib-storage/mail-storage-service.c b/src/lib-storage/mail-storage-service.c index 44e97e3fff..66fb10756e 100644 --- a/src/lib-storage/mail-storage-service.c +++ b/src/lib-storage/mail-storage-service.c @@ -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)