Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib/compat.h @ 4909:5ea3e08af1e2 HEAD
Added EDESTDIREXISTS() macro, and changed rename() calls to use it.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 16 Dec 2006 01:08:42 +0200 |
parents | 76e2177be0bf |
children | 2e6a977b1d6a |
line wrap: on
line diff
--- a/src/lib/compat.h Sat Dec 16 00:52:11 2006 +0200 +++ b/src/lib/compat.h Sat Dec 16 01:08:42 2006 +0200 @@ -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