dovecot: Ignore EEXIST errors for rmdir().

dovecot at dovecot.org dovecot at dovecot.org
Sun Dec 2 15:28:33 EET 2007


details:   http://hg.dovecot.org/dovecot/rev/95caa2ab300c
changeset: 6892:95caa2ab300c
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Dec 02 15:28:29 2007 +0200
description:
Ignore EEXIST errors for rmdir().

diffstat:

1 file changed, 2 insertions(+), 1 deletion(-)
src/lib/nfs-workarounds.c |    3 ++-

diffs (13 lines):

diff -r e744479186b6 -r 95caa2ab300c src/lib/nfs-workarounds.c
--- a/src/lib/nfs-workarounds.c	Sun Dec 02 14:05:45 2007 +0200
+++ b/src/lib/nfs-workarounds.c	Sun Dec 02 15:28:29 2007 +0200
@@ -294,7 +294,8 @@ static bool nfs_flush_file_handle_cache_
 				  "rmdir(%s) unexpectedly "
 				  "removed the dir. mkdir() failed: %m", path);
 		}
-	} else if (errno == ESTALE || errno == ENOTDIR || errno == ENOTEMPTY) {
+	} else if (errno == ESTALE || errno == ENOTDIR ||
+		   errno == ENOTEMPTY || errno == EEXIST) {
 		/* expected failures */
 	} else if (errno == ENOENT) {
 		return FALSE;


More information about the dovecot-cvs mailing list