On Mon, Mar 13, 2006 at 01:14:13AM +0100, Karl Berry wrote: > rsync --archive --compress --partial --relative [...]
It appears that there is an exclude bug when dealing with --relative while copying an absolute path. The attached patch fixes this. This is big enough that 2.6.8 will appear shortly, but until then, this one-line fix will take care of the problem. I've also added a new test to the testsuite that will catch a problem such as this in the future. Thanks for the report, ..wayne..
--- 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);
-- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html