From fe2c53d570bf7a301b0cb5aa25b1186a47378a6b Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 17 Sep 2019 16:45:20 +0200 Subject: xtables-restore: Use xt_params->program_name Instead of setting newargv[0] to argv[0]'s value, just use whatever xt_params->program_name contains. The latter is arbitrarily defined, but may still be more correct than real argv[0] which may simply be for instance xtables-nft-multi. Either way, there is no practical significance since newargv[0] is used exclusively in debug output. Signed-off-by: Phil Sutter Acked-by: Pablo Neira Ayuso --- iptables/nft-shared.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'iptables/nft-shared.h') diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h index a330aceb..5c664150 100644 --- a/iptables/nft-shared.h +++ b/iptables/nft-shared.h @@ -262,8 +262,7 @@ struct nft_xt_restore_cb { void xtables_restore_parse(struct nft_handle *h, const struct nft_xt_restore_parse *p, - struct nft_xt_restore_cb *cb, - int argc, char *argv[]); + struct nft_xt_restore_cb *cb); void nft_check_xt_legacy(int family, bool is_ipt_save); #endif -- cgit v1.2.3