diff options
author | Phil Sutter <phil@nwl.cc> | 2018-08-02 17:05:19 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-08-04 14:44:43 +0200 |
commit | a192f03520ebd0a2c0ecfca8abd1e00967f3b351 (patch) | |
tree | 9e9c96d7042177d2da1c7bd65df83c56da81d718 /iptables/xtables-eb.c | |
parent | a2ed880a19d0861342b3515721804b18d698bf44 (diff) |
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 <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/xtables-eb.c')
-rw-r--r-- | iptables/xtables-eb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iptables/xtables-eb.c b/iptables/xtables-eb.c index ab0539c8..a88655ce 100644 --- a/iptables/xtables-eb.c +++ b/iptables/xtables-eb.c @@ -732,9 +732,9 @@ void ebt_add_watcher(struct xtables_target *watcher, cs->match_list->next = newnode; } -int nft_init_eb(struct nft_handle *h) +int nft_init_eb(struct nft_handle *h, const char *pname) { - ebtables_globals.program_name = "ebtables"; + ebtables_globals.program_name = pname; if (xtables_init_all(&ebtables_globals, NFPROTO_BRIDGE) < 0) { fprintf(stderr, "%s/%s Failed to initialize ebtables-compat\n", ebtables_globals.program_name, |