From cc25d2913217ea71b23d447609fb03b6d1aef970 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 12 Feb 2005 19:52:18 +0000 Subject: [PATCH] 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. --- flist.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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); -- 2.34.1