changeset 22279:53f8039b2aa0

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.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Thu, 22 Jun 2017 02:33:03 +0300
parents 799536d825cf
children 46597cee3f43
files src/lib-storage/mail-autoexpunge.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/mail-autoexpunge.c	Thu Jun 22 02:32:10 2017 +0300
+++ b/src/lib-storage/mail-autoexpunge.c	Thu Jun 22 02:33:03 2017 +0300
@@ -50,8 +50,7 @@
 			   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;
 	}