Hello,
In arping, error message is formed before parsing argv. So arping always
reports errors on "interface eth0", regardless of actual interface.
diff --git a/networking/arping.c b/networking/arping.c
index a4421ed..356857c 100644
--- a/networking/arping.c
+++ b/networking/arping.c
@@ -284,7 +284,6 @@ int arping_main(int argc UNUSED_PARAM, char **argv)
// Need to remove SUID_NEVER from applets.h for this to work
//xsetuid(getuid());
- err_str = xasprintf("interface %s %%s", device);
{
unsigned opt;
char *str_timeout;
@@ -305,6 +304,7 @@ int arping_main(int argc UNUSED_PARAM, char **argv)
xfunc_error_retval = 2;
+ err_str = xasprintf("interface %s %%s", device);
{
struct ifreq ifr;
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox