summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@inai.de>2023-11-13 11:38:32 +0100
committerJan Engelhardt <jengelh@inai.de>2023-11-13 11:41:13 +0100
commit881cb4e8e4a489245367c292940d8975b11b8591 (patch)
treefe007e51c443de3146d259337ce0078f63269203
parentf5cc74be6a48f77a69e72f31bdf90e40002a196f (diff)
ebtables: better error message when -j is missing
~# ebtables -t broute -A BROUTING -i xyz0 --mark-set 0 Unknown argument: don't forget the -t option. But I have -t already! `t->name` is the target name, not a table name (there is no built-in table "standard"), so we need to show -j, not -t. Signed-off-by: Jan Engelhardt <jengelh@inai.de>
-rw-r--r--ebtables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ebtables.c b/ebtables.c
index c1f5c2b..d0d206b 100644
--- a/ebtables.c
+++ b/ebtables.c
@@ -1086,7 +1086,7 @@ big_iface_length:
ebt_print_error2("Unknown argument: '%s'", argv[optind - 1], (char)optopt, (char)c);
else if (w == NULL) {
if (!strcmp(t->name, "standard"))
- ebt_print_error2("Unknown argument: don't forget the -t option");
+ ebt_print_error2("Unknown argument: don't forget the -j option");
else
ebt_print_error2("Target-specific option does not correspond with specified target");
}