[pkg-netfilter-team] Bug#944759: When using include, nft shows the wrong file name in errors

Etienne Dechamps etienne at edechamps.fr
Thu Nov 14 21:16:53 GMT 2019


Package: nftables
Version: 0.9.2-2
Severity: minor

$ cat > nftables.conf <<EOF
include "./nftables-inc.conf"
(
EOF
$ touch nftables-inc.conf
$ /usr/sbin/nft --check --file nftables.conf
In file included from nftables.conf:1:1-30:
./nftables-inc.conf:1:2-2: Error: syntax error, unexpected '('

Notice how nftables is complaining about a syntax error in the
included file, even though the error is actually in the main file.



More information about the pkg-netfilter-team mailing list