From 437746c7b528f3d9b1d4e822ef82d0f0f207f1f7 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Sat, 26 May 2018 19:20:16 +0200 Subject: xtables: extended error reporting Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso --- iptables/xtables-restore.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'iptables/xtables-restore.c') diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c index d977dabf..6cd4de23 100644 --- a/iptables/xtables-restore.c +++ b/iptables/xtables-restore.c @@ -228,6 +228,8 @@ void xtables_restore_parse(struct nft_handle *h, int ret = 0; line++; + h->error.lineno = line; + if (buffer[0] == '\n') continue; else if (buffer[0] == '#') { -- cgit v1.2.3