diff options
author | Rob Landley <rob@landley.net> | 2013-12-22 20:15:54 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2013-12-22 20:15:54 -0600 |
commit | 5a73f3992d75dd4c7beefae2fa8a843d14372b19 (patch) | |
tree | f2ed4feaeca0d082c4b1475fcd602e7d760c9815 /toys/other/ifconfig.c | |
parent | f070ec01d918ff0474a0a5fc9aa745fcd848622a (diff) | |
download | toybox-5a73f3992d75dd4c7beefae2fa8a843d14372b19.tar.gz |
Ashwini sharma pointed out that show_help() doesn't exit so "ifconfig eth0 netmask" would segfault. Replace it with an error_exit(), see list for aesthetic issue this raises re: help text.
Diffstat (limited to 'toys/other/ifconfig.c')
-rw-r--r-- | toys/other/ifconfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/ifconfig.c b/toys/other/ifconfig.c index 38d2f64b..59d1574d 100644 --- a/toys/other/ifconfig.c +++ b/toys/other/ifconfig.c @@ -478,7 +478,7 @@ void ifconfig_main(void) // Is this an SIOCSI entry? if ((off|0xff) == 0x89ff) { if (!rev) { - if (!*++argv) show_help(); + if (!*++argv) error_exit("%s needs argument", t->name); // Assign value to ifre field and call ioctl? (via IFREQ_OFFSZ.) if (on < 0) { |