From: Pablo Neira Ayuso Date: Wed, 24 Sep 2025 21:54:12 +0000 (+0200) Subject: libnftables: do not re-add default include directory in include search path X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3af59817b8d3994d52db0f1aa5dabeebc84dae45;p=thirdparty%2Fnftables.git 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 --- 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; }