Commit 3556fe5d authored by Wayne Davison's avatar Wayne Davison

Fixed a problem where a --link-dest hard-link could cause us to

miss out on the hard_link_cluster() call.
parent ee887d98
......@@ -914,8 +914,15 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
if (hard_link_one(file, ndx, fname, -1, &st,
fnamecmpbuf, 1,
itemizing && verbose > 1,
code) == 0)
code) == 0) {
if (preserve_hard_links
&& file->link_u.links) {
hard_link_cluster(file, ndx,
itemizing,
code);
}
return;
}
match_level = 2;
}
#endif
......
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