[Bug 1383] New: When using include, nft shows the wrong file name in errors

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Wed Nov 20 13:45:19 CET 2019


https://bugzilla.netfilter.org/show_bug.cgi?id=1383

            Bug ID: 1383
           Summary: When using include, nft shows the wrong file name in
                    errors
           Product: nftables
           Version: unspecified
          Hardware: x86_64
                OS: Debian GNU/Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: nft
          Assignee: pablo at netfilter.org
          Reporter: arturo at netfilter.org

Original bug report: https://bugs.debian.org/944759

I reproduced this error locally with latest nftables from git.

=== 8< ===
$ 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.
=== 8< ===

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20191120/18caa59f/attachment.html>


More information about the netfilter-buglog mailing list