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..

Attachment: signature.asc
Description: Digital signature

_______________________________________________
rsync-announce mailing list
[email protected]
https://lists.samba.org/mailman/listinfo/rsync-announce

Reply via email to