Commit 4d474ad5 authored by Wayne Davison's avatar Wayne Davison

One place that was testing errno for ENOTEMPTY was failing to

also test for EEXIST (which is returned by some OSes).
parent e50e82ab
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment