Fixed a hang when using --remove-source-files in dry-run mode.
authorWayne Davison <wayned@samba.org>
Sun, 16 Mar 2008 13:56:26 +0000 (06:56 -0700)
committerWayne Davison <wayned@samba.org>
Sun, 16 Mar 2008 13:56:26 +0000 (06:56 -0700)
generator.c

index b1634bd..4ec0ac4 100644 (file)
@@ -1856,7 +1856,7 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
                rprintf(FINFO, "generating and sending sums for %d\n", ndx);
 
   notify_others:
-       if (remove_source_files && !delay_updates && !phase)
+       if (remove_source_files && !delay_updates && !phase && !dry_run)
                increment_active_files(ndx, itemizing, code);
        if (inc_recurse && !dry_run)
                cur_flist->in_progress++;