From: Glenn L McGrath Date: Fri, 29 Aug 2003 10:58:46 +0000 (-0000) Subject: "This function was not updating the argc and argv pointers to reflect X-Git-Tag: 1_00_pre3~52 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=08dea3e5a71bbdbf3bb123ff05c521eb152c690a;p=oweals%2Fbusybox.git "This function was not updating the argc and argv pointers to reflect the arguments it consumed, which means the calling function encountered them as well. As a result, a command like "ip -6 addr" was yielding a usage error." - Philip Blundell --- diff --git a/networking/libiproute/ip_parse_common_args.c b/networking/libiproute/ip_parse_common_args.c index 21e9f74ba..1f3d73933 100644 --- a/networking/libiproute/ip_parse_common_args.c +++ b/networking/libiproute/ip_parse_common_args.c @@ -71,4 +71,6 @@ void ip_parse_common_args(int *argcp, char ***argvp) argc--; argv++; } _SL_ = oneline ? "\\" : "\n" ; + *argcp = argc; + *argvp = argv; }