iproute: fix ipXXX utilities trying to parse their applet name
authorDenis Vlasenko <vda.linux@googlemail.com>
Thu, 4 Dec 2008 12:15:19 +0000 (12:15 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Thu, 4 Dec 2008 12:15:19 +0000 (12:15 -0000)
 as their 1st parameter.

networking/ip.c

index 10059c55f23dd4517d108455180a874a1adbefb8..9903c6800cb2bb53d677771a877721533a20c905 100644 (file)
@@ -31,7 +31,7 @@ static int NORETURN ip_print_help(char **argv UNUSED_PARAM)
 
 static int ip_do(int (*ip_func)(char **argv), char **argv)
 {
-       argv = ip_parse_common_args(argv);
+       argv = ip_parse_common_args(argv + 1);
        return ip_func(argv);
 }