summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Davison <wayne@opencoder.net>2022-08-23 19:38:41 -0700
committerWayne Davison <wayne@opencoder.net>2022-08-23 19:38:41 -0700
commit1b664d30e4966a1be4a19fd816847dc664ef3436 (patch)
treed8b70d06a18183be52153147732d024b90a8d9a6
parentea38f34d02956b8586230d5c7f51f2d4740b6eab (diff)
downloadrsync-1b664d30e4966a1be4a19fd816847dc664ef3436.tar.gz
Fix an unreleased bug handling a leading dot.
-rw-r--r--exclude.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/exclude.c b/exclude.c
index 777874aa..5458455b 100644
--- a/exclude.c
+++ b/exclude.c
@@ -454,8 +454,8 @@ void add_implied_include(const char *arg, int skip_daemon_module)
cp++;
slash_cnt--;
p--;
- break;
- }
+ } else
+ *p++ = *cp++;
} else
*p++ = *cp++;
break;
@@ -484,7 +484,7 @@ void add_implied_include(const char *arg, int skip_daemon_module)
implied_filter_list.head = rule;
}
if (DEBUG_GTE(FILTER, 3))
- rprintf(FINFO, "[%s] add_IMPlied_include(%s)\n", who_am_i(), arg);
+ rprintf(FINFO, "[%s] add_implied_include(%s)\n", who_am_i(), arg);
if (saw_live_open_brkt)
maybe_add_literal_brackets_rule(rule, arg_len);
if (relative_paths && slash_cnt) {