From: Tomasz Bursztyka Date: Thu, 27 Oct 2011 07:26:42 +0000 (+0300) Subject: iptables: Disable getopt unknown option display X-Git-Tag: 0.78~92 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0f5e496a59e04cb9ab38755af5c5d154c1d4c2f0;p=platform%2Fupstream%2Fconnman.git iptables: Disable getopt unknown option display --- diff --git a/src/iptables.c b/src/iptables.c index af0cec2..30d8f47 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:",