From 3af59817b8d3994d52db0f1aa5dabeebc84dae45 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 24 Sep 2025 23:54:12 +0200 Subject: [PATCH] libnftables: do not re-add default include directory in include search path Otherwise globbing might duplicate included files because include_path_glob() is called twice. Fixes: 7eb950a8e8fa ("libnftables: include canonical path to avoid duplicates") Tested-by: Jeremy Sowden 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 c8293f77..9f6a1bc3 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.47.3