From: Timo Sirainen Date: Wed, 21 Jun 2017 23:33:03 +0000 (+0300) Subject: lib-storage: mailbox_autoexpunge_lock() - Don't hide ENOENT error X-Git-Tag: 2.2.32.rc1~153 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0c4b344f031951a55ac1de5f5f05818bbb07eaf7;p=thirdparty%2Fdovecot%2Fcore.git 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. --- 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; }