projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62b031f
)
"This function was not updating the argc and argv pointers to reflect
author
Glenn L McGrath
<bug1@ihug.co.nz>
Fri, 29 Aug 2003 10:58:46 +0000
(10:58 -0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Fri, 29 Aug 2003 10:58:46 +0000
(10:58 -0000)
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
networking/libiproute/ip_parse_common_args.c
patch
|
blob
|
history
diff --git
a/networking/libiproute/ip_parse_common_args.c
b/networking/libiproute/ip_parse_common_args.c
index 21e9f74ba189bd62e792f8ff57efcec038805873..1f3d739337f779654b33be53584fae55f37e1c0c 100644
(file)
--- 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;
}