libiproute: fix option parsing, so that "ip -o link" works again.

closes bug 3524
This commit is contained in:
Denis Vlasenko
2008-05-31 07:34:14 +00:00
parent 3e57adb731
commit d12fcc20da
2 changed files with 3 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ char **ip_parse_common_args(char **argv)
break;
}
}
arg = index_in_strings(ip_common_commands, opt);
arg = index_in_substrings(ip_common_commands, opt);
if (arg < 0)
bb_show_usage();
if (arg == ARG_oneline) {