diff options
author | Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> | 2024-09-03 04:16:21 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2024-09-16 23:22:47 +0200 |
commit | 33f030f7d4e64d3ee20f76330c50e02e9c92932c (patch) | |
tree | 6134e7e43a75ee68469a08e1a4b808382c968f32 | |
parent | 8a251ddc8c9da5b04e95eaba23cde6ab6576b7ca (diff) |
conntrack: -L doesn't take a value, so don't discard one (same for -IUDGEFA)
The manual says
COMMANDS
These options specify the particular operation to perform.
Only one of them can be specified at any given time.
-L --dump
List connection tracking or expectation table
So, naturally, "conntrack -Lo extended" should work,
but it doesn't, it's equivalent to "conntrack -L",
and you need "conntrack -L -o extended".
This violates user expectations (borne of the Utility Syntax Guidelines)
and contradicts the manual.
optarg is unused, anyway. Unclear why any of these were :: at all?
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | src/conntrack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conntrack.c b/src/conntrack.c index 0d71352..9fa4986 100644 --- a/src/conntrack.c +++ b/src/conntrack.c @@ -337,7 +337,7 @@ static struct option original_opts[] = { {0, 0, 0, 0} }; -static const char *getopt_str = ":L::I::U::D::G::E::F::A::hVs:d:r:q:" +static const char *getopt_str = ":LIUDGEFAhVs:d:r:q:" "p:t:u:e:a:z[:]:{:}:m:i:f:o:n::" "g::c:b:C::Sj::w:l:<:>::(:):"; |