Otherwise globbing might duplicate included files because include_path_glob() is called twice. Fixes: 7eb950a8e8fa ("libnftables: include canonical path to avoid duplicates") Signed-off-by: Pablo Neira Ayuso --- src/libnftables.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libnftables.c b/src/libnftables.c index c8293f77677f..9f6a1bc33539 100644 --- a/src/libnftables.c +++ b/src/libnftables.c @@ -176,6 +176,9 @@ static bool nft_ctx_find_include_path(struct nft_ctx *ctx, const char *path) return true; } + if (!strcmp(path, DEFAULT_INCLUDE_PATH)) + return true; + return false; } -- 2.30.2