From: Timo Sirainen Date: Mon, 24 Jul 2017 13:36:45 +0000 (+0300) Subject: lib-storage: If chdir(home) fails due to EACCES, don't log two errors. X-Git-Tag: 2.2.32.rc1~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ab9ee2673f29653d75b5d9d48afda909fb13d601;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: If chdir(home) fails due to EACCES, don't log two errors. --- diff --git a/src/lib-storage/mail-storage-service.c b/src/lib-storage/mail-storage-service.c index de30e39419..590deeeb74 100644 --- a/src/lib-storage/mail-storage-service.c +++ b/src/lib-storage/mail-storage-service.c @@ -711,7 +711,7 @@ mail_storage_service_init_post(struct mail_storage_service_ctx *ctx, if (errno == EACCES) { i_error("%s", eacces_error_get("chdir", t_strconcat(home, "/", NULL))); - } if (errno != ENOENT) + } else if (errno != ENOENT) i_error("chdir(%s) failed: %m", home); else if (mail_set->mail_debug) i_debug("Home dir not found: %s", home);