X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/d5782b52a2141a14d54cd74efa406d4428b0c5ae..5b51c893c563e64f1e6b7e0550f4b8831e641bd1:/exclude.c diff --git a/exclude.c b/exclude.c index c8408a1c..4282e164 100644 --- a/exclude.c +++ b/exclude.c @@ -562,7 +562,7 @@ static int rule_matches(char *name, struct filter_struct *ex, int name_is_dir) 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);