mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-21 21:34:17 -04:00
The delete_one() function no longer needs to handle the case where
it thinks it is removing a directory and it is really removing a symlink.
This commit is contained in:
1 parent
23f4587f2b
commit
9f004a9ea9
1 file changed
-4
@@ -65,10 +65,6 @@ static void delete_one(char *fn, int is_dir)
|
||||
rprintf(FINFO, "deleting %s\n", safe_fname(fn));
|
||||
} else {
|
||||
if (do_rmdir(fn) != 0) {
|
||||
if (errno == ENOTDIR && keep_dirlinks) {
|
||||
delete_one(fn, 0);
|
||||
return;
|
||||
}
|
||||
if (errno != ENOTEMPTY && errno != EEXIST) {
|
||||
rsyserr(FERROR, errno,
|
||||
"delete_one: rmdir %s failed",
|
||||
|
||||
Reference in new issue
Block a user