summaryrefslogtreecommitdiff
path: root/hlink.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-12-15 22:54:23 +0000
committerAndrew Tridgell <tridge@samba.org>1997-12-15 22:54:23 +0000
commit527cea662a18071b595d551599ad29ba9780fb8d (patch)
tree169744455b2c8134527599fd20a6bcc4215f8019 /hlink.c
parent7c5969064009f1d305ab86e42d924cb3f7acc853 (diff)
downloadrsync-527cea662a18071b595d551599ad29ba9780fb8d.tar.gz
- fixed an off by 1 bug in the hard link support
- added a note about anonymous cvs access to the source code in the README
Diffstat (limited to 'hlink.c')
-rw-r--r--hlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hlink.c b/hlink.c
index 238fc02b..60b639bf 100644
--- a/hlink.c
+++ b/hlink.c
@@ -71,7 +71,7 @@ void init_hard_links(struct file_list *flist)
int check_hard_link(struct file_struct *file)
{
#if SUPPORT_HARD_LINKS
- int low=0,high=hlink_count;
+ int low=0,high=hlink_count-1;
int mid=0,ret=0;
if (!hlink_list || !S_ISREG(file->mode)) return 0;