2.6.1pre-1 Segmentation fault & other fun

Wayne Davison wayned at samba.org
Fri Mar 26 16:57:34 GMT 2004


On Fri, Mar 26, 2004 at 10:03:54AM -0500, Erik Jan Tromp wrote:
> $ rsync -aHPv rsync://host/module/single.file .
> <motd, if any>
> receiving file list ... 
> 1 file to consider
> Segmentation fault

Thanks for the report!  I've fixed this bug in CVS as follows:

--- hlink.c	11 Feb 2004 05:03:04 -0000	1.38
+++ hlink.c	26 Mar 2004 16:41:28 -0000
@@ -135,7 +135,7 @@
 
 int hard_link_check(struct file_struct *file, int skip)
 {
-	if (!file->link_u.links)
+	if (!hlink_list || !file->link_u.links)
 		return 0;
 	if (skip && !(file->flags & FLAG_HLINK_EOL))
 		hlink_list[file->F_HLINDEX] = file->F_NEXT;

..wayne..


More information about the rsync mailing list