[dovecot-cvs] dovecot/src/lib compat.h,1.34,1.35

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


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv23839/lib

Modified Files:
	compat.h 
Log Message:
Handle EMLINK and EPERM errors the same way as EXDEV when handling hardlink 
failures. Added ECANTLINK() macro for this.



Index: compat.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/compat.h,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- compat.h	22 Jan 2006 16:10:52 -0000	1.34
+++ compat.h	17 Jun 2006 15:56:59 -0000	1.35
@@ -196,4 +196,7 @@
 #define ENOTFOUND(errno) \
 	((errno) == ENOENT || (errno) == ENOTDIR || (errno) == ELOOP)
 
+#define ECANTLINK(errno) \
+	((errno) == EXDEV || (errno) == EMLINK || (errno) == EPERM)
+
 #endif



More information about the dovecot-cvs mailing list