]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: mailbox_autoexpunge_lock() - Don't hide ENOENT error
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 21 Jun 2017 23:33:03 +0000 (02:33 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 3 Jul 2017 12:14:13 +0000 (15:14 +0300)
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

index 8277a355d2aca4eb69da6a2a9bfc2de6cc38090c..4c2fae4f5c29dc04736d2b1af81e71a9b4aed485 100644 (file)
@@ -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;
        }