From f041efe3c26e3059df1ac8f1775f77423d4be5f6 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 31 May 2013 16:21:04 +0200 Subject: xtables-restore: output the same error message that iptables-restore uses Signed-off-by: Pablo Neira Ayuso --- iptables/nft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iptables/nft.c') diff --git a/iptables/nft.c b/iptables/nft.c index ca56d0ed..7dad2464 100644 --- a/iptables/nft.c +++ b/iptables/nft.c @@ -2641,7 +2641,7 @@ static int nft_action(struct nft_handle *h, int type) if (errno != EEXIST) perror("mnl-talk:nft_commit"); } - return ret; + return ret == 0 ? 1 : 0; } int nft_commit(struct nft_handle *h) -- cgit v1.2.3