mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-03-10 18:37:40 -04:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user