Mercurial > dovecot > core-2.2
changeset 22383:0a22d391254f
lib-storage: If chdir(home) fails due to EACCES, don't log two errors.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Mon, 24 Jul 2017 16:36:45 +0300 |
parents | 9fab68be12db |
children | 9a117c44073e |
files | src/lib-storage/mail-storage-service.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/mail-storage-service.c Mon Jul 24 14:17:22 2017 +0300 +++ b/src/lib-storage/mail-storage-service.c Mon Jul 24 16:36:45 2017 +0300 @@ -711,7 +711,7 @@ 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);