Skip to content

Commit

Permalink
lib-storage: If chdir(home) fails due to EACCES, don't log two errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Jul 25, 2017
1 parent 1164ceb commit ab9ee26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-storage/mail-storage-service.c
Expand Up @@ -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);
Expand Down

0 comments on commit ab9ee26

Please sign in to comment.