netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 1.4.3: iptables-multi needs adjustment for -static callname
@ 2009-03-24 21:39 Jan Engelhardt
  2009-03-25 12:48 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Engelhardt @ 2009-03-24 21:39 UTC (permalink / raw)
  To: pablo; +Cc: Netfilter Developer Mailing List

HI,

I just noticed that one cannot call iptables-static because the multi 
handler does not know about itself.

Available through: git://dev.medozas.de/iptables plus


parent ed7925b77010dd17531ea0424b49d2b72af4add9 (v1.4.3.1-1-ged7925b)
commit cdf51d0183213c4bcac9ef4818155c1d3fbb897e
Author: Jan Engelhardt <jengelh@medozas.de>
Date:   Tue Mar 24 22:35:10 2009 +0100

iptables-multi: support "iptables-static" as a callable name

iptables multi-purpose version: unknown applet name iptables-static

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
 ip6tables-multi.c |    3 ++-
 iptables-multi.c  |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ip6tables-multi.c b/ip6tables-multi.c
index 0bcface..3313bfd 100644
--- a/ip6tables-multi.c
+++ b/ip6tables-multi.c
@@ -16,7 +16,8 @@ int main(int argc, char **argv) {
   } else {
     progname = basename(argv[0]);
 
-    if (!strcmp(progname, "ip6tables"))
+    if (!strcmp(progname, "ip6tables") ||
+        strcmp(progname, "ip6tables-static") == 0)
       return ip6tables_main(argc, argv);
     
     if (!strcmp(progname, "ip6tables-save"))
diff --git a/iptables-multi.c b/iptables-multi.c
index 7ade333..28c1737 100644
--- a/iptables-multi.c
+++ b/iptables-multi.c
@@ -17,7 +17,8 @@ int main(int argc, char **argv) {
   } else {
     progname = basename(argv[0]);
 
-    if (!strcmp(progname, "iptables"))
+    if (!strcmp(progname, "iptables") ||
+        strcmp(progname, "iptables-static") == 0)
       return iptables_main(argc, argv);
     
     if (!strcmp(progname, "iptables-save"))
-- 
# Created with git-export-patch

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: 1.4.3: iptables-multi needs adjustment for -static callname
  2009-03-24 21:39 1.4.3: iptables-multi needs adjustment for -static callname Jan Engelhardt
@ 2009-03-25 12:48 ` Pablo Neira Ayuso
  0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2009-03-25 12:48 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Netfilter Developer Mailing List

Jan Engelhardt wrote:
> HI,
> 
> I just noticed that one cannot call iptables-static because the multi 
> handler does not know about itself.
> 
> Available through: git://dev.medozas.de/iptables plus

Pulled and applied. Thanks.

-- 
"Los honestos son inadaptados sociales" -- Les Luthiers

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-25 12:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-24 21:39 1.4.3: iptables-multi needs adjustment for -static callname Jan Engelhardt
2009-03-25 12:48 ` Pablo Neira Ayuso

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).