Skip to content

Commit

Permalink
The delete_one() function no longer needs to handle the case where
Browse files Browse the repository at this point in the history
it thinks it is removing a directory and it is really removing a
symlink.
  • Loading branch information
Wayne Davison committed Sep 21, 2004
1 parent 23f4587 commit 9f004a9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions receiver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9f004a9

Please sign in to comment.