Allow he in tunnel name

Allows tunnels that could be confused with help command.

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
This commit is contained in:
Andreas Henriksson 2008-09-18 10:55:03 -07:00 committed by Stephen Hemminger
parent 1758a81f49
commit 1f1ae524fb
1 changed files with 1 additions and 2 deletions

View 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);