From 1fe027b2cac9fd227e7bf639cf0dcba27b47f65c Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 24 Jul 2017 16:36:45 +0300 Subject: [PATCH] lib-storage: If chdir(home) fails due to EACCES, don't log two errors. --- src/lib-storage/mail-storage-service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib-storage/mail-storage-service.c b/src/lib-storage/mail-storage-service.c index d5d88495b1..49a4f4b1bc 100644 --- a/src/lib-storage/mail-storage-service.c +++ b/src/lib-storage/mail-storage-service.c @@ -731,7 +731,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); -- 2.47.3