diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2024-06-14 11:24:19 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2024-06-25 17:20:12 +0200 |
commit | 302e9f8b3a1382cf09db32541693b5df7d80ca1e (patch) | |
tree | dc38298820ace340cb2b87efa9b1da6d40a71056 /examples/nft-json-file.c | |
parent | 2274d8a32f40aa55b118a9de2d642342837867b7 (diff) |
libnftables: add base directory of -f/--filename to include path
This patch adds an include path relative to the current (the including)
file's directory.
Users of -f/--filename have to explicitly specify -I with a redundant
path to find included files in the main file, eg.
# nft -I /path/to/files -f /path/to/files/ruleset.nft
Assuming:
# cat /path/to/files/ruleset.nft
include "file1.nft"
include "file2.nft"
include "file3.nft"
The follow up patch ("libnftables: search for default include path last")
is also required according to what it is described in the manpage update
coming with this patch.
Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1661
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'examples/nft-json-file.c')
0 files changed, 0 insertions, 0 deletions