diff options
author | Glenn L McGrath | 2003-08-29 10:58:46 +0000 |
---|---|---|
committer | Glenn L McGrath | 2003-08-29 10:58:46 +0000 |
commit | 08dea3e5a71bbdbf3bb123ff05c521eb152c690a (patch) | |
tree | a6bf9c8c06b3a07093d475a0b7695702d6ae6a2f /networking | |
parent | 62b031fb8283e625cd45ba910ded0338c7c147da (diff) | |
download | busybox-08dea3e5a71bbdbf3bb123ff05c521eb152c690a.zip busybox-08dea3e5a71bbdbf3bb123ff05c521eb152c690a.tar.gz |
"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
Diffstat (limited to 'networking')
-rw-r--r-- | networking/libiproute/ip_parse_common_args.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/networking/libiproute/ip_parse_common_args.c b/networking/libiproute/ip_parse_common_args.c index 21e9f74..1f3d739 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; } |