]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
Allow he in tunnel name
authorAndreas Henriksson <andreas@fatal.se>
Thu, 18 Sep 2008 17:55:03 +0000 (10:55 -0700)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Thu, 18 Sep 2008 17:55:03 +0000 (10:55 -0700)
Allows tunnels that could be confused with help command.

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
ip/iptunnel.c

index 769e84559e43c6f33bdb5d318cef1648886c8fd4..0d9a17f0e212748089fcc1e6c879ffb028f6dcc2 100644 (file)
@@ -196,8 +196,7 @@ static int parse_args(int argc, char **argv, int cmd, struct ip_tunnel_parm *p)
                } else {
                        if (strcmp(*argv, "name") == 0) {
                                NEXT_ARG();
-                       }
-                       if (matches(*argv, "help") == 0)
+                       } else if (matches(*argv, "help") == 0)
                                usage();
                        if (p->name[0])
                                duparg2("name", *argv);