X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/5cefa088e21d994d6721e5edbd529f9aee61caa8..93204ccae21d3e623563bec7a037bb47a9e6f997:/generator.c diff --git a/generator.c b/generator.c index c10685ad..47803c11 100644 --- a/generator.c +++ b/generator.c @@ -904,7 +904,7 @@ static int try_dests_reg(struct file_struct *file, char *fname, int ndx, #ifdef SUPPORT_HARD_LINKS try_a_copy: /* Copy the file locally. */ #endif - if (copy_file(cmpbuf, fname, file->mode, 0) < 0) { + if (!dry_run && copy_file(cmpbuf, fname, file->mode, 0) < 0) { if (verbose) { rsyserr(FINFO, errno, "copy_file %s => %s", full_fname(cmpbuf), fname); @@ -1873,6 +1873,7 @@ void check_for_finished_files(int itemizing, enum logcode code, int check_redo) file = flist->files[ndx - flist->ndx_start]; assert(file->flags & FLAG_HLINKED); finish_hard_link(file, f_name(file, fbuf), ndx, NULL, itemizing, code, -1); + flist->in_progress--; } #endif