X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/9422bb3fdf16ae5a3d726e41435ba405b4c22a8e..8458724d2558659cfb5e53443759cac5419b13bf:/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) {