Patch for 2.6.7 (affects --exclude used with --relative)

Wayne Davison wayned at samba.org
Fri Mar 17 18:25:06 GMT 2006


For anyone combining --exclude with the --relative option and/or for
those who have packaged 2.6.7 binaries:

Please apply the following one-line patch to the code.  It fixes a bug
where an absolute --exclude without wildcards would fail to match if
--relative is in effect.

--- exclude.c	28 Jan 2006 00:14:02 -0000	1.128
+++ exclude.c	13 Mar 2006 01:49:56 -0000
@@ -562,7 +562,7 @@ static int rule_matches(char *name, stru
 		if (litmatch_array(pattern, strings, slash_handling))
 			return ret_match;
 	} else if (anchored_match) {
-		if (strcmp(name,pattern) == 0)
+		if (strcmp(strings[0], pattern) == 0)
 			return ret_match;
 	} else {
 		int l1 = strlen(name);

I'm anticipating that version 2.6.8 should be released in a week or two
to fix this bug and make any other minor changes that seem appropriate.

..wayne..
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/rsync/attachments/20060317/f46b47d5/attachment.bin


More information about the rsync mailing list