mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-26 07:38:18 -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:
1 parent
e50e82ab40
commit
4d474ad513
1 file changed
+1
-1
+1
-1
@@ -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