summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2025-09-24 23:54:12 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2025-09-25 23:41:30 +0200
commit3af59817b8d3994d52db0f1aa5dabeebc84dae45 (patch)
tree18e4a557cce28b72eecf4f8ec30e9e0760b7df6d
parent98e51e687616a4b54efa3b723917c292e3acc380 (diff)
libnftables: do not re-add default include directory in include search pathHEADmaster
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 <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--src/libnftables.c3
1 files changed, 3 insertions, 0 deletions
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;
}