diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-08-29 10:58:46 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-08-29 10:58:46 +0000 |
commit | b782629b0fea8d5e2ac6101357f094f7e32ba665 (patch) | |
tree | a6bf9c8c06b3a07093d475a0b7695702d6ae6a2f | |
parent | bab6bae9ccb3f3cf345c7144edc6f62bc170e8f0 (diff) | |
download | busybox-w32-b782629b0fea8d5e2ac6101357f094f7e32ba665.tar.gz busybox-w32-b782629b0fea8d5e2ac6101357f094f7e32ba665.tar.bz2 busybox-w32-b782629b0fea8d5e2ac6101357f094f7e32ba665.zip |
"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
git-svn-id: svn://busybox.net/trunk/busybox@7282 69ca8d6d-28ef-0310-b511-8ec308f3f277
-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 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) | |||
71 | argc--; argv++; | 71 | argc--; argv++; |
72 | } | 72 | } |
73 | _SL_ = oneline ? "\\" : "\n" ; | 73 | _SL_ = oneline ? "\\" : "\n" ; |
74 | *argcp = argc; | ||
75 | *argvp = argv; | ||
74 | } | 76 | } |