From: David Dykstra Date: Tue, 2 Mar 1999 20:56:17 +0000 (+0000) Subject: Disable the optimization that treats include-only files as a special case X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/8458724d2558659cfb5e53443759cac5419b13bf Disable the optimization that treats include-only files as a special case whenever delete_mode is on. People reported problems when it kicked in while using --delete and while using --delete-excluded. --- diff --git a/exclude.c b/exclude.c index 66aeb671..ae9f8b17 100644 --- a/exclude.c +++ b/exclude.c @@ -23,6 +23,7 @@ #include "rsync.h" extern int verbose; +extern int delete_mode; static struct exclude_struct **exclude_list; @@ -41,7 +42,7 @@ int send_included_file_names(int f,struct file_list *flist) int n; char *p; - if (!only_included_files || (exclude_the_rest == NULL)) + if (!only_included_files || (exclude_the_rest == NULL) || delete_mode) return 0; if (verbose > 1) {