Fix ip command shortcuts

This commit is contained in:
shemminger 2005-10-24 16:26:25 +00:00
parent 7849fb5591
commit 234b613556
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

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