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

View: New views
1 Messages — Rating Filter:   Alert me  

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

by Samba - rsync-announce mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


_______________________________________________
rsync-announce mailing list
rsync-announce@...
https://lists.samba.org/mailman/listinfo/rsync-announce

signature.asc (198 bytes) Download Attachment
LightInTheBox - Buy quality products at wholesale price