One place that was testing errno for ENOTEMPTY was failing to

also test for EEXIST (which is returned by some OSes).
This commit is contained in:
Wayne Davison
2005-05-19 00:00:28 +00:00
parent e50e82ab40
commit 4d474ad513

View File

@@ -186,7 +186,7 @@ static int delete_item(char *fname, int mode, int flags)
if (do_rmdir(fname) == 0) {
if (!(flags & DEL_TERSE))
log_delete(fname, mode);
} else if (errno != ENOTEMPTY && errno != ENOENT) {
} else if (errno != ENOTEMPTY && errno != EEXIST && errno != ENOENT) {
rsyserr(FERROR, errno, "delete_file: rmdir %s failed",
full_fname(fname));
return -1;