We always add a slash now that path is cleaned.
authorWayne Davison <wayne@opencoder.net>
Thu, 15 Sep 2022 17:13:07 +0000 (10:13 -0700)
committerWayne Davison <wayne@opencoder.net>
Thu, 15 Sep 2022 17:13:20 +0000 (10:13 -0700)
exclude.c

index 5c0b0a69f08902ce7d60b29df29736ec73d117ec..ffe55b167edfdbe1325bcfdbe178f8b7b7017504 100644 (file)
--- 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))