From: Wayne Davison Date: Sat, 12 Feb 2005 19:52:18 +0000 (+0000) Subject: We don't need to avoid the local filter list in send_file_name() X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/cc25d2913217ea71b23d447609fb03b6d1aef970 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. --- diff --git a/flist.c b/flist.c index c60bd2bc..8d4defb9 100644 --- a/flist.c +++ b/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);