From b129b1cfcdbc82430cbbb90e83c344a14e77a808 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 26 Nov 2021 21:45:12 +0100 Subject: iptables-*-restore: Drop pointless line reference There's no need to mention the offending line number in error message when calling xtables_error() with a status of PARAMETER_PROBLEM as that will cause a call to xtables_exit_tryhelp() which in turn prints "Error occurred at line: N". Signed-off-by: Phil Sutter --- iptables/xtables-eb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'iptables/xtables-eb.c') diff --git a/iptables/xtables-eb.c b/iptables/xtables-eb.c index ed8f7332..060e06c5 100644 --- a/iptables/xtables-eb.c +++ b/iptables/xtables-eb.c @@ -894,8 +894,8 @@ print_zero: ebt_check_option2(&flags, OPT_TABLE); if (restore && table_set) xtables_error(PARAMETER_PROBLEM, - "The -t option (seen in line %u) cannot be used in %s.\n", - line, xt_params->program_name); + "The -t option cannot be used in %s.\n", + xt_params->program_name); if (!nft_table_builtin_find(h, optarg)) xtables_error(VERSION_PROBLEM, "table '%s' does not exist", -- cgit v1.2.3