Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
44885a3
)
If the combination of --dry-run, --link-dest, and -H finds a matching
author
Wayne Davison
<wayned@samba.org>
Mon, 9 Oct 2006 02:59:23 +0000
(
02:59
+0000)
committer
Wayne Davison
<wayned@samba.org>
Mon, 9 Oct 2006 02:59:23 +0000
(
02:59
+0000)
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.
generator.c
patch
|
blob
|
blame
|
history
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;
- 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)