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:
parent
1758a81f49
commit
1f1ae524fb
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue