From 7e634f5355d6dd96c5be7957837cba5a8154c70c Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Thu, 15 Sep 2022 10:13:07 -0700 Subject: [PATCH] We always add a slash now that path is cleaned. --- exclude.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/exclude.c b/exclude.c index 5c0b0a69..ffe55b16 100644 --- a/exclude.c +++ b/exclude.c @@ -555,15 +555,12 @@ void add_implied_include(const char *arg, int skip_daemon_module) p += arg_len; } } - if (p[-1] != '/') { - *p++ = '/'; - slash_cnt++; - } + *p++ = '/'; *p++ = '*'; if (recurse) *p++ = '*'; *p = '\0'; - rule->u.slash_cnt = slash_cnt; + rule->u.slash_cnt = slash_cnt + 1; rule->next = implied_filter_list.head; implied_filter_list.head = rule; if (DEBUG_GTE(FILTER, 3)) -- 2.47.2