<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - When using include, nft shows the wrong file name in errors"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1383">1383</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>When using include, nft shows the wrong file name in errors
</td>
</tr>
<tr>
<th>Product</th>
<td>nftables
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86_64
</td>
</tr>
<tr>
<th>OS</th>
<td>Debian GNU/Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P5
</td>
</tr>
<tr>
<th>Component</th>
<td>nft
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pablo@netfilter.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>arturo@netfilter.org
</td>
</tr></table>
<p>
<div>
<pre>Original bug report: <a href="https://bugs.debian.org/944759">https://bugs.debian.org/944759</a>
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< ===</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>