From: Wayne Davison Date: Thu, 10 Nov 2005 02:56:58 +0000 (+0000) Subject: If a partial-dir file is present but the main file is up-to-date, X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/d8b108c2a117318d58c6ef9e09d5741581df43e3 If a partial-dir file is present but the main file is up-to-date, just remove the partial-dir file. --- diff --git a/generator.c b/generator.c index 965e2834..c66feaa8 100644 --- a/generator.c +++ b/generator.c @@ -1069,6 +1069,10 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, else if (fnamecmp_type == FNAMECMP_FUZZY) ; else if (unchanged_file(fnamecmp, file, &st)) { + if (partialptr) { + do_unlink(partialptr); + handle_partial_dir(partialptr, PDIR_DELETE); + } if (fnamecmp_type == FNAMECMP_FNAME) { if (itemizing) { itemize(file, ndx, real_ret, &real_st,