From 552a218468739a50790a6b91c6a5c5c26c03bff6 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 1 Apr 2005 18:12:22 +0000 Subject: [PATCH] Make a local-copy caused by a not-quite-up-to-date --compare-dest or --link-dest file be output as a 'c' (local change) when itemizing or as transfered file when not itemizing. --- generator.c | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/generator.c b/generator.c index ec0e04d1..98313e36 100644 --- a/generator.c +++ b/generator.c @@ -923,8 +923,25 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, } match_level = 0; statret = -1; - } else - set_perms(fname, file, NULL, 0); + } else { + if (itemizing) { + itemize(file, ndx, 0, &st, + ITEM_LOCAL_CHANGE, 0, + NULL); + } else if (verbose && code) { + rprintf(code, "%s\n", + safe_fname(fname)); + } + set_perms(fname, file, NULL, + maybe_PERMS_REPORT); + if (preserve_hard_links + && file->link_u.links) { + hard_link_cluster(file, ndx, + itemizing, + code); + } + return; + } } else if (compare_dest || match_level == 1) { fnamecmp = fnamecmpbuf; fnamecmp_type = i; -- 2.34.1