mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-03-13 11:56:14 -04:00
Changed delete_missing() to not limit the use of DEL_FORCE_RECURSE
to just --delete-during now that the other delete routines are using delete_in_dir().
This commit is contained in:
9
flist.c
9
flist.c
@@ -1746,13 +1746,10 @@ void delete_missing(struct file_list *full_list, struct file_list *dir_list,
|
||||
rprintf(FINFO, "deleting %s\n",
|
||||
safe_fname(f));
|
||||
}
|
||||
} else if (S_ISDIR(mode)) {
|
||||
int dflag = delete_during ? DEL_FORCE_RECURSE
|
||||
: DEL_NO_RECURSE;
|
||||
delete_file(f, DEL_DIR | dflag);
|
||||
} else {
|
||||
} else if (S_ISDIR(mode))
|
||||
delete_file(f, DEL_DIR | DEL_FORCE_RECURSE);
|
||||
else
|
||||
delete_file(f, 0);
|
||||
}
|
||||
deletion_count++;
|
||||
if (max_delete && deletion_count >= max_delete)
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user