Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
If the combination of --dry-run, --link-dest, and -H finds a matching
[rsync/rsync.git]
/
generator.c
diff --git
a/generator.c
b/generator.c
index
b36bc4d
..
15cd325
100644
(file)
--- a/
generator.c
+++ b/
generator.c
@@
-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;
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);
hard_link_cluster(file, ndx, itemizing, code);
+ }
} else
#endif
if (itemizing)
} else
#endif
if (itemizing)