X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/a8b9d4edec745757d34a10be0f6956c0609c2284..c27f25922e9f59e439228a3c3e0c38342899a80f:/exclude.c 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) {