From: Jiri Popelka <jpopelka@redhat.com>
To: netfilter-devel@vger.kernel.org
Cc: Jiri Popelka <jpopelka@redhat.com>
Subject: [PATCH 3/3] iptables: save - fix getopt_long()'s optstring
Date: Thu, 13 Mar 2014 17:01:21 +0100 [thread overview]
Message-ID: <1394726481-6001-3-git-send-email-jpopelka@redhat.com> (raw)
In-Reply-To: <1394726481-6001-1-git-send-email-jpopelka@redhat.com>
---
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;
--
1.8.5.3
next prev parent reply other threads:[~2014-03-13 16:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-13 16:01 [PATCH 1/3] iptables-restore(8): missing -T in synopsis Jiri Popelka
2014-03-13 16:01 ` [PATCH 2/3] iptables-restore(8): file to read from can be specified as argument Jiri Popelka
2014-03-14 8:41 ` Pablo Neira Ayuso
2014-03-13 16:01 ` Jiri Popelka [this message]
2014-03-14 8:44 ` [PATCH 3/3] iptables: save - fix getopt_long()'s optstring Pablo Neira Ayuso
2014-03-14 8:40 ` [PATCH 1/3] iptables-restore(8): missing -T in synopsis Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1394726481-6001-3-git-send-email-jpopelka@redhat.com \
--to=jpopelka@redhat.com \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).