dovecot-2.2: maildir: Handle unlink()=EPERM failure the same as ...
    dovecot at dovecot.org 
    dovecot at dovecot.org
       
    Thu Aug 28 14:51:23 UTC 2014
    
    
  
details:   http://hg.dovecot.org/dovecot-2.2/rev/3bc106fd69d3
changeset: 17755:3bc106fd69d3
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Aug 28 23:50:25 2014 +0900
description:
maildir: Handle unlink()=EPERM failure the same as EISDIR.
EPERM is POSIX, while EISDIR is Linux-specific.
diffstat:
 src/lib-storage/index/maildir/maildir-sync-index.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 48aa40ae3039 -r 3bc106fd69d3 src/lib-storage/index/maildir/maildir-sync-index.c
--- 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,
    
    
More information about the dovecot-cvs
mailing list