diff options
author | Wayne Davison <wayne@opencoder.net> | 2022-09-13 20:56:32 -0700 |
---|---|---|
committer | Wayne Davison <wayne@opencoder.net> | 2022-09-13 20:56:32 -0700 |
commit | 464555ea923b32f3504678d05bc7de9205e5c8da (patch) | |
tree | 7d4c2419620b4c611323df18487df51ad6a77795 | |
parent | df904f590ecbcb7fe99a834beba961276b1616ce (diff) | |
download | rsync-464555ea923b32f3504678d05bc7de9205e5c8da.tar.gz |
Fix really silly bug with --relative rules.
-rw-r--r-- | exclude.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -494,9 +494,9 @@ void add_implied_include(const char *arg, int skip_daemon_module) maybe_add_literal_brackets_rule(rule, arg_len); if (relative_paths && slash_cnt) { filter_rule const *ent; - int found = 0; slash_cnt = 1; for (p = new_pat + 1; (p = strchr(p, '/')) != NULL; p++) { + int found = 0; *p = '\0'; for (ent = implied_filter_list.head; ent; ent = ent->next) { if (ent != rule && strcmp(ent->pattern, new_pat) == 0) { |