We need to turn off make_backups for the redo phase so that
authorWayne Davison <wayned@samba.org>
Sun, 27 Feb 2005 07:50:43 +0000 (07:50 +0000)
committerWayne Davison <wayned@samba.org>
Sun, 27 Feb 2005 07:50:43 +0000 (07:50 +0000)
the inplace processing doesn't make a second backup.

generator.c

index 6966ec1..ac68c57 100644 (file)
@@ -1146,6 +1146,7 @@ void generate_files(int f_out, struct file_list *flist, char *local_name,
        only_existing = max_size = opt_ignore_existing = 0;
        update_only = always_checksum = size_only = 0;
        ignore_times = 1;
+       make_backups = 0; /* avoid a duplicate backup for inplace processing */
 
        /* We expect to just sit around now, so don't exit on a timeout.
         * If we really get a timeout then the other process should exit. */