Commit d9163a4c authored by Wayne Davison's avatar Wayne Davison

If the combination of --dry-run, --link-dest, and -H finds a matching

file in on of the extra basis dirs, make a note of which basis dir
we would have used in the hard-link with the destination file.
parent 44885a39
......@@ -657,8 +657,11 @@ static int try_dests_reg(struct file_struct *file, char *fname, int ndx,
itemizing && verbose > 1,
code) < 0)
goto try_a_copy;
if (preserve_hard_links && file->link_u.links)
if (preserve_hard_links && file->link_u.links) {
if (dry_run)
file->link_u.links->link_dest_used = j + 1;
hard_link_cluster(file, ndx, itemizing, code);
}
} else
#endif
if (itemizing)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment