From 1f1ae524fbf461c2693d32f57ce468276e0051a8 Mon Sep 17 00:00:00 2001 From: Andreas Henriksson Date: Thu, 18 Sep 2008 10:55:03 -0700 Subject: [PATCH] Allow he in tunnel name Allows tunnels that could be confused with help command. Signed-off-by: Andreas Henriksson --- ip/iptunnel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ip/iptunnel.c b/ip/iptunnel.c index 769e84559..0d9a17f0e 100644 --- a/ip/iptunnel.c +++ b/ip/iptunnel.c @@ -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); -- 2.47.2