projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3bb88c
)
iptables: Disable getopt unknown option display
author
Tomasz Bursztyka
<tomasz.bursztyka@linux.intel.com>
Thu, 27 Oct 2011 07:26:42 +0000
(10:26 +0300)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 28 Oct 2011 19:34:28 +0000
(21:34 +0200)
src/iptables.c
patch
|
blob
|
history
diff --git
a/src/iptables.c
b/src/iptables.c
index
af0cec2
..
30d8f47
100644
(file)
--- 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:",