Commit b3168628 authored by Wayne Davison's avatar Wayne Davison

Fixed a problem when copying an absolute source path with

the --relative option enabled.
parent 38a4b9c2
...@@ -562,7 +562,7 @@ static int rule_matches(char *name, struct filter_struct *ex, int name_is_dir) ...@@ -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)) if (litmatch_array(pattern, strings, slash_handling))
return ret_match; return ret_match;
} else if (anchored_match) { } else if (anchored_match) {
if (strcmp(name,pattern) == 0) if (strcmp(strings[0], pattern) == 0)
return ret_match; return ret_match;
} else { } else {
int l1 = strlen(name); int l1 = strlen(name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment