- fixed an off by 1 bug in the hard link support
authorAndrew Tridgell <tridge@samba.org>
Mon, 15 Dec 1997 22:54:23 +0000 (22:54 +0000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 15 Dec 1997 22:54:23 +0000 (22:54 +0000)
- added a note about anonymous cvs access to the source code in the
README

README
hlink.c

diff --git a/README b/README
index ddf17bb..38f804f 100644 (file)
--- a/README
+++ b/README
@@ -97,6 +97,21 @@ rsync-bugs@samba.anu.edu.au or (if you think it will be of interest to
 lots of people) send it to rsync@samba.anu.edu.au
 
 
+CVS TREE
+--------
+
+If you want to get the very latest version of rsync direct from the
+source code repository then you can use anonymous cvs. You will need a
+recent version of cvs then use the following commands:
+
+       cvs -d :pserver:cvs@samba.anu.edu.au:/cvsroot login
+       Password: cvs
+
+       cvs -d :pserver:cvs@samba.anu.edu.au:/cvsroot co rsync
+
+Look at the cvs documentation for more details.
+
+
 COPYRIGHT
 ---------
 
diff --git a/hlink.c b/hlink.c
index 238fc02..60b639b 100644 (file)
--- 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;