From 0c4b344f031951a55ac1de5f5f05818bbb07eaf7 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 22 Jun 2017 02:33:03 +0300 Subject: [PATCH] lib-storage: mailbox_autoexpunge_lock() - Don't hide ENOENT error It means that the user's home directory doesn't exist, which is pretty unexpected. Home directory is supposed to be created when the storage is initialized. --- src/lib-storage/mail-autoexpunge.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib-storage/mail-autoexpunge.c b/src/lib-storage/mail-autoexpunge.c index 8277a355d2..4c2fae4f5c 100644 --- a/src/lib-storage/mail-autoexpunge.c +++ b/src/lib-storage/mail-autoexpunge.c @@ -50,8 +50,7 @@ mailbox_autoexpunge_lock(struct mail_user *user, struct file_lock **lock) need to. */ return FALSE; } - if (errno == ENOENT) - i_error("autoexpunge: Couldn't lock %s: %s", path, error); + i_error("autoexpunge: Couldn't lock %s: %s", path, error); /* do autoexpunging anyway */ return TRUE; }