changeset 6892:95caa2ab300c HEAD

Ignore EEXIST errors for rmdir().
author Timo Sirainen <tss@iki.fi>
date Sun, 02 Dec 2007 15:28:29 +0200
parents e744479186b6
children a9daec3c00b5
files src/lib/nfs-workarounds.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 				  "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;