Commit 234b6135 authored by shemminger's avatar shemminger

Fix ip command shortcuts

parent 7849fb55
2005-10-24 Patrick McHardy <kaber@trash.net>
* Fix ip commnad shortcuts
2005-10-12 Stephen Hemminger <shemminger@osdl.org> 2005-10-12 Stephen Hemminger <shemminger@osdl.org>
* Add more CBQ examples from Fedora Core * Add more CBQ examples from Fedora Core
......
...@@ -81,7 +81,7 @@ static int do_cmd(const char *argv0, int argc, char **argv) ...@@ -81,7 +81,7 @@ static int do_cmd(const char *argv0, int argc, char **argv)
const struct cmd *c; const struct cmd *c;
for (c = cmds; c->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); return c->func(argc-1, argv+1);
fprintf(stderr, "Object \"%s\" is unknown, try \"ip help\".\n", argv0); fprintf(stderr, "Object \"%s\" is unknown, try \"ip help\".\n", argv0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment