[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-copy.c, 1.43.2.1, 1.43.2.2

cras at dovecot.org cras at dovecot.org
Sat Jun 17 18:57:01 EEST 2006


Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv12556/lib-storage/index/maildir

Modified Files:
      Tag: branch_1_0
	maildir-copy.c 
Log Message:
Handle EMLINK and EPERM errors the same way as EXDEV when handling hardlink
failures. Added ECANTLINK() macro for this.



Index: maildir-copy.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-copy.c,v
retrieving revision 1.43.2.1
retrieving revision 1.43.2.2
diff -u -d -r1.43.2.1 -r1.43.2.2
--- maildir-copy.c	11 Jun 2006 14:06:08 -0000	1.43.2.1
+++ maildir-copy.c	17 Jun 2006 15:56:58 -0000	1.43.2.2
@@ -73,7 +73,7 @@
 					       "Not enough disk space");
 			return -1;
 		}
-		if (errno == EACCES || errno == EXDEV)
+		if (errno == EACCES || ECANTLINK(errno))
 			return 1;
 
 		mail_storage_set_critical(STORAGE(mbox->storage),



More information about the dovecot-cvs mailing list