[dovecot-cvs] dovecot/src/lib compat.h,1.35,1.36
tss at dovecot.org
tss at dovecot.org
Fri Dec 15 23:08:45 UTC 2006
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv9416/lib
Modified Files:
compat.h
Log Message:
Added EDESTDIREXISTS() macro, and changed rename() calls to use it.
Index: compat.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/compat.h,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- compat.h 17 Jun 2006 15:56:59 -0000 1.35
+++ compat.h 15 Dec 2006 23:08:42 -0000 1.36
@@ -199,4 +199,8 @@
#define ECANTLINK(errno) \
((errno) == EXDEV || (errno) == EMLINK || (errno) == EPERM)
+/* EBUSY is given by some NFS implementations */
+#define EDESTDIREXISTS(errno) \
+ ((errno) == EEXIST || (errno) == ENOTEMPTY || (errno) == EBUSY)
+
#endif
More information about the dovecot-cvs
mailing list