From 553d7582db6124205b91c3c65f84dcaebbe30884 Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Thu, 27 Oct 2011 10:24:57 +0300 Subject: [PATCH] tools: Disable getopt unknown option display in iptables_test --- tools/iptables-test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/iptables-test.c b/tools/iptables-test.c index 5a3df95..fb8cefe 100644 --- a/tools/iptables-test.c +++ b/tools/iptables-test.c @@ -1402,6 +1402,9 @@ int main(int argc, char *argv[]) xt_m = NULL; xt_t = NULL; + /* extension's options will generate false-positives errors */ + opterr = 0; + while ((c = getopt_long(argc, argv, "-A:D:F:I:L::N:X:d:i:j:m:o:s:t:", connman_iptables_globals.opts, NULL)) != -1) { switch (c) { -- 2.7.4