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/xtables-translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iptables/xtables-translate.c') diff --git a/iptables/xtables-translate.c b/iptables/xtables-translate.c index 4ae9ff57..64e7667a 100644 --- a/iptables/xtables-translate.c +++ b/iptables/xtables-translate.c @@ -535,7 +535,7 @@ static int xtables_restore_xlate_main(int family, const char *progname, printf("# Translated by %s v%s on %s", argv[0], PACKAGE_VERSION, ctime(&now)); - xtables_restore_parse(&h, &p, &cb_xlate, argc, argv); + xtables_restore_parse(&h, &p, &cb_xlate); printf("# Completed on %s", ctime(&now)); nft_fini(&h); -- cgit v1.2.3