diff toys/other/ifconfig.c @ 1433:00c20f410c46 draft

Patches to commands for issues reported from static analysis tool. portability.h.patch - it is for O_CLOEXEC, as compiler complained of it. Makefile.patch - for cleaning generated/*.o files and libopts.dat file [Fixup to uniq.c from Rob.]
author Ashwini Sharma <ak.ashwini1981@gmail.com>
date Tue, 12 Aug 2014 07:09:01 -0500
parents eb19245b94b6
children 4bfbd8b96f66
line wrap: on
line diff
--- a/toys/other/ifconfig.c	Mon Aug 11 20:15:19 2014 -0500
+++ b/toys/other/ifconfig.c	Tue Aug 12 07:09:01 2014 -0500
@@ -421,7 +421,7 @@
       }
 
       if ((p-ptr) != count || *hw_addr)
-        error_exit("bad hw-addr '%s'", hw_addr ? hw_addr : "");
+        error_exit("bad hw-addr '%s'", *argv);
 
       // the linux kernel's "struct sockaddr" (include/linux/socket.h in the
       // kernel source) only has 14 bytes of sa_data, and an infiniband address