mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-05-05 05:24:00 -04:00
We don't need to avoid the local filter list in send_file_name()
when --delete-excluded is set because our list has been trimmed to only include rules that apply in the current mode.
This commit is contained in:
7
flist.c
7
flist.c
@@ -64,7 +64,6 @@ extern int copy_links;
|
||||
extern int copy_unsafe_links;
|
||||
extern int protocol_version;
|
||||
extern int sanitize_paths;
|
||||
extern int delete_excluded;
|
||||
extern int max_delete;
|
||||
extern int orig_umask;
|
||||
extern int list_only;
|
||||
@@ -976,11 +975,7 @@ void send_file_name(int f, struct file_list *flist, char *fname,
|
||||
struct file_struct *file;
|
||||
char fbuf[MAXPATHLEN];
|
||||
|
||||
/* f is set to -1 when calculating deletion file list */
|
||||
file = make_file(fname, flist,
|
||||
f == -1 && delete_excluded? SERVER_FILTERS : ALL_FILTERS);
|
||||
|
||||
if (!file)
|
||||
if (!(file = make_file(fname, flist, ALL_FILTERS)))
|
||||
return;
|
||||
|
||||
maybe_emit_filelist_progress(flist);
|
||||
|
||||
Reference in New Issue
Block a user