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/xtables-restore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iptables/xtables-restore.c') diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c index 60e07f78..4e46b625 100644 --- a/iptables/xtables-restore.c +++ b/iptables/xtables-restore.c @@ -515,7 +515,7 @@ int xtables_eb_restore_main(int argc, char *argv[]) const char *table = NULL; struct nft_handle h; - nft_init_eb(&h); + nft_init_eb(&h, "ebtables-restore"); while ((c = getopt_long(argc, argv, "n", ebt_restore_options, NULL)) != -1) { -- cgit v1.2.3