Disable the optimization that treats include-only files as a special case
authorDavid Dykstra <dwd@samba.org>
Tue, 2 Mar 1999 20:56:17 +0000 (20:56 +0000)
committerDavid Dykstra <dwd@samba.org>
Tue, 2 Mar 1999 20:56:17 +0000 (20:56 +0000)
whenever delete_mode is on.  People reported problems when it kicked in
while using --delete and while using --delete-excluded.

exclude.c

index 66aeb67..ae9f8b1 100644 (file)
--- 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) {