Ashwini sharma pointed out that show_help() doesn't exit so "ifconfig eth0 netmask...
authorRob Landley <rob@landley.net>
Mon, 23 Dec 2013 02:15:54 +0000 (20:15 -0600)
committerRob Landley <rob@landley.net>
Mon, 23 Dec 2013 02:15:54 +0000 (20:15 -0600)
toys/other/ifconfig.c

index 38d2f64..59d1574 100644 (file)
@@ -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) {