summaryrefslogtreecommitdiff
path: root/networking/arping.c
diff options
context:
space:
mode:
authorAlexander Korolkov2015-03-12 13:05:33 +0100
committerDenys Vlasenko2015-03-12 13:05:33 +0100
commit748fb60f274b1ba40aa6ed4c4582185aae8f68f7 (patch)
treecfa30344f655cdaed0706982de166ef885342e42 /networking/arping.c
parentfe8b5802bafb7bce7af525237d1195a91a3e4af4 (diff)
downloadbusybox-748fb60f274b1ba40aa6ed4c4582185aae8f68f7.zip
busybox-748fb60f274b1ba40aa6ed4c4582185aae8f68f7.tar.gz
arping: fix iface name in error messages
arping: interface eth0 not found: No such device ^^^^ This is because error template is formed before parsing command line arguments, so it always uses default interface name "eth0". Signed-off-by: Alexander Korolkov <alexander.korolkov@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/arping.c')
-rw-r--r--networking/arping.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/arping.c b/networking/arping.c
index a4421ed..dbfd75e 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;
@@ -302,7 +301,7 @@ int arping_main(int argc UNUSED_PARAM, char **argv)
}
target = argv[optind];
-
+ err_str = xasprintf("interface %s %%s", device);
xfunc_error_retval = 2;
{