diff options
author | Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> | 2011-10-27 10:26:42 +0300 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-10-28 21:34:28 +0200 |
commit | 0f5e496a59e04cb9ab38755af5c5d154c1d4c2f0 (patch) | |
tree | 511d1499dfb3bef094ebb3ef656f8b18b1035bda /src/iptables.c | |
parent | c3bb88c7887241ad09bcf16406d7ca8264e7e64a (diff) | |
download | connman-0f5e496a59e04cb9ab38755af5c5d154c1d4c2f0.tar.gz connman-0f5e496a59e04cb9ab38755af5c5d154c1d4c2f0.tar.bz2 connman-0f5e496a59e04cb9ab38755af5c5d154c1d4c2f0.zip |
iptables: Disable getopt unknown option display
Diffstat (limited to 'src/iptables.c')
-rw-r--r-- | src/iptables.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/iptables.c b/src/iptables.c index af0cec21..30d8f47b 100644 --- a/src/iptables.c +++ b/src/iptables.c @@ -1413,6 +1413,9 @@ static int iptables_command(int argc, char *argv[]) xt_t = NULL; ret = 0; + /* extension's options will generate false-positives errors */ + opterr = 0; + optind = 0; while ((c = getopt_long(argc, argv, "-A:F:I:L::N:X:d:j:i:m:o:s:t:", |