X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/4f2dcb17140f30f0c53c10d9556e9ab8c040dd07..b35d0d8e9ae9c5407c9f781b545f8a66b9caa9d0:/hlink.c diff --git a/hlink.c b/hlink.c index ea389995..a38a65bd 100644 --- a/hlink.c +++ b/hlink.c @@ -97,6 +97,8 @@ int check_hard_link(struct file_struct *file) low = mid + 1; } + /* XXX: To me this looks kind of dodgy -- why do we use [low] + * here and [low-1] below? -- mbp */ if (hlink_compare(&hlink_list[low], file) != 0) return 0; @@ -106,7 +108,7 @@ int check_hard_link(struct file_struct *file) file->inode == hlink_list[low - 1].inode) { if (verbose >= 2) { rprintf(FINFO, "check_hard_link: \"%s\" is a hard link to file %d, \"%s\"\n", - f_name(file), low, f_name(&hlink_list[low])); + f_name(file), low-1, f_name(&hlink_list[low-1])); } return 1; }