changeset 17755:3bc106fd69d3

maildir: Handle unlink()=EPERM failure the same as EISDIR. EPERM is POSIX, while EISDIR is Linux-specific.
author Timo Sirainen <tss@iki.fi>
date Thu, 28 Aug 2014 23:50:25 +0900
parents 48aa40ae3039
children 0ff8d85a6893
files src/lib-storage/index/maildir/maildir-sync-index.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-sync-index.c	Thu Aug 28 22:44:18 2014 +0900
+++ b/src/lib-storage/index/maildir/maildir-sync-index.c	Thu Aug 28 23:50:25 2014 +0900
@@ -95,7 +95,7 @@
 	}
 	if (errno == ENOENT)
 		return 0;
-	if (errno == EISDIR)
+	if (errno == EISDIR || errno == EPERM)
 		return maildir_lose_unexpected_dir(box->storage, path);
 
 	mail_storage_set_critical(&mbox->storage->storage,