From patchwork Thu Mar 13 16:01:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Popelka X-Patchwork-Id: 330001 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id F12F52C00AF for ; Fri, 14 Mar 2014 03:01:42 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753969AbaCMQBg (ORCPT ); Thu, 13 Mar 2014 12:01:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24583 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752682AbaCMQBf (ORCPT ); Thu, 13 Mar 2014 12:01:35 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s2DG1VJP027201 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 13 Mar 2014 12:01:31 -0400 Received: from zepelin.brq.redhat.com (zepelin.brq.redhat.com [10.34.4.75]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s2DG1RG6023199; Thu, 13 Mar 2014 12:01:30 -0400 From: Jiri Popelka To: netfilter-devel@vger.kernel.org Cc: Jiri Popelka Subject: [PATCH 3/3] iptables: save - fix getopt_long()'s optstring Date: Thu, 13 Mar 2014 17:01:21 +0100 Message-Id: <1394726481-6001-3-git-send-email-jpopelka@redhat.com> In-Reply-To: <1394726481-6001-1-git-send-email-jpopelka@redhat.com> References: <1394726481-6001-1-git-send-email-jpopelka@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org --- iptables/ip6tables-save.c | 2 +- iptables/iptables-save.c | 2 +- iptables/xtables-save.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iptables/ip6tables-save.c b/iptables/ip6tables-save.c index a86a64a..cf56c63 100644 --- a/iptables/ip6tables-save.c +++ b/iptables/ip6tables-save.c @@ -137,7 +137,7 @@ int ip6tables_save_main(int argc, char *argv[]) init_extensions6(); #endif - while ((c = getopt_long(argc, argv, "bcdt:", options, NULL)) != -1) { + while ((c = getopt_long(argc, argv, "cdt:M:", options, NULL)) != -1) { switch (c) { case 'c': show_counters = 1; diff --git a/iptables/iptables-save.c b/iptables/iptables-save.c index 2999c7f..ed81dfd 100644 --- a/iptables/iptables-save.c +++ b/iptables/iptables-save.c @@ -136,7 +136,7 @@ iptables_save_main(int argc, char *argv[]) init_extensions4(); #endif - while ((c = getopt_long(argc, argv, "bcdt:", options, NULL)) != -1) { + while ((c = getopt_long(argc, argv, "cdt:M:", options, NULL)) != -1) { switch (c) { case 'c': show_counters = 1; diff --git a/iptables/xtables-save.c b/iptables/xtables-save.c index 42d2907..d732377 100644 --- a/iptables/xtables-save.c +++ b/iptables/xtables-save.c @@ -104,7 +104,7 @@ xtables_save_main(int family, const char *progname, int argc, char *argv[]) exit(EXIT_FAILURE); } - while ((c = getopt_long(argc, argv, "bcdt:46", options, NULL)) != -1) { + while ((c = getopt_long(argc, argv, "cdt:M:46", options, NULL)) != -1) { switch (c) { case 'c': show_counters = true;