summaryrefslogtreecommitdiff
path: root/hlink.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2008-04-27 18:45:13 -0700
committerWayne Davison <wayned@samba.org>2008-04-27 18:45:13 -0700
commit876ad10ccc02cbf60dd4ceba2a40cc843faf200c (patch)
tree8a07605b9a078c714603d33df47db6a26cfef199 /hlink.c
parent34a2b391653f344139a81ab2ad5959804c4acc7c (diff)
downloadrsync-876ad10ccc02cbf60dd4ceba2a40cc843faf200c.tar.gz
Fixed a crash if a non-incremental-recursion transfer has a
skipped file in a set of hard-links.
Diffstat (limited to 'hlink.c')
-rw-r--r--hlink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hlink.c b/hlink.c
index 812c55f7..dd5d122a 100644
--- a/hlink.c
+++ b/hlink.c
@@ -266,7 +266,8 @@ static char *check_prior(struct file_struct *file, int gnum,
F_HL_PREV(file) = prev_ndx = F_HL_PREV(fp);
}
- if ((node = hashtable_find(prior_hlinks, gnum, 0)) != NULL) {
+ if (inc_recurse
+ && (node = hashtable_find(prior_hlinks, gnum, 0)) != NULL) {
assert(node->data != NULL);
if (CVAL(node->data, 0) != 0) {
*prev_ndx_p = -1;