[dovecot-cvs] dovecot/src/lib compat.h,1.34.2.1,1.34.2.2
tss at dovecot.org
tss at dovecot.org
Fri Dec 15 23:08:42 UTC 2006
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv9420/lib
Modified Files:
Tag: branch_1_0
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.34.2.1
retrieving revision 1.34.2.2
diff -u -d -r1.34.2.1 -r1.34.2.2
--- compat.h 17 Jun 2006 15:56:58 -0000 1.34.2.1
+++ compat.h 15 Dec 2006 23:08:40 -0000 1.34.2.2
@@ -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