From a192f03520ebd0a2c0ecfca8abd1e00967f3b351 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 2 Aug 2018 17:05:19 +0200 Subject: ebtables: Fix for wrong program name in error messages Since nft_init_eb() is shared among standalone ebtables and ebtables-restore, allow for callers to pass the program name. Signed-off-by: Phil Sutter Signed-off-by: Florian Westphal --- iptables/nft.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iptables/nft.h') diff --git a/iptables/nft.h b/iptables/nft.h index a479cf07..6f58de25 100644 --- a/iptables/nft.h +++ b/iptables/nft.h @@ -145,7 +145,7 @@ int do_commandx(struct nft_handle *h, int argc, char *argv[], char **table, bool /* For xtables-arptables.c */ int do_commandarp(struct nft_handle *h, int argc, char *argv[], char **table); /* For xtables-eb.c */ -int nft_init_eb(struct nft_handle *h); +int nft_init_eb(struct nft_handle *h, const char *pname); int ebt_get_current_chain(const char *chain); int do_commandeb(struct nft_handle *h, int argc, char *argv[], char **table); -- cgit v1.2.3