Skip to content

Commit 7e634f5

Browse files
committed
We always add a slash now that path is cleaned.
1 parent 8fe8cfd commit 7e634f5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

exclude.c

+2-5
Original file line numberDiff line numberDiff line change
@@ -555,15 +555,12 @@ void add_implied_include(const char *arg, int skip_daemon_module)
555555
p += arg_len;
556556
}
557557
}
558-
if (p[-1] != '/') {
559-
*p++ = '/';
560-
slash_cnt++;
561-
}
558+
*p++ = '/';
562559
*p++ = '*';
563560
if (recurse)
564561
*p++ = '*';
565562
*p = '\0';
566-
rule->u.slash_cnt = slash_cnt;
563+
rule->u.slash_cnt = slash_cnt + 1;
567564
rule->next = implied_filter_list.head;
568565
implied_filter_list.head = rule;
569566
if (DEBUG_GTE(FILTER, 3))

0 commit comments

Comments
 (0)