Fix ip command shortcuts
This commit is contained in:
parent
7849fb5591
commit
234b613556
|
|
@ -1,3 +1,7 @@
|
|||
2005-10-24 Patrick McHardy <kaber@trash.net>
|
||||
|
||||
* Fix ip commnad shortcuts
|
||||
|
||||
2005-10-12 Stephen Hemminger <shemminger@osdl.org>
|
||||
|
||||
* Add more CBQ examples from Fedora Core
|
||||
|
|
|
|||
2
ip/ip.c
2
ip/ip.c
|
|
@ -81,7 +81,7 @@ static int do_cmd(const char *argv0, int argc, char **argv)
|
|||
const struct cmd *c;
|
||||
|
||||
for (c = cmds; c->cmd; ++c)
|
||||
if (strcmp(c->cmd, argv0) == 0)
|
||||
if (matches(argv0, c->cmd) == 0)
|
||||
return c->func(argc-1, argv+1);
|
||||
|
||||
fprintf(stderr, "Object \"%s\" is unknown, try \"ip help\".\n", argv0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue