Hm, strange off-by-one bug.
authorMartin Pool <mbp@samba.org>
Mon, 25 Mar 2002 06:59:17 +0000 (06:59 +0000)
committerMartin Pool <mbp@samba.org>
Mon, 25 Mar 2002 06:59:17 +0000 (06:59 +0000)
hlink.c

diff --git a/hlink.c b/hlink.c
index ea38999..95aa30a 100644 (file)
--- a/hlink.c
+++ b/hlink.c
@@ -106,7 +106,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;
        }