changeset 1211:40e0f7b09b77

Fix two bugs reported by Ashwini Sharma.
author Rob Landley <rob@landley.net>
date Fri, 28 Feb 2014 23:04:57 -0600
parents 1c4c893d4e72
children 86745958cea9
files Makefile toys/other/ifconfig.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Fri Feb 28 20:46:16 2014 -0600
+++ b/Makefile	Fri Feb 28 23:04:57 2014 -0600
@@ -42,7 +42,7 @@
 
 clean::
 	rm -rf toybox toybox_unstripped generated/config.h generated/Config.in \
-		generated/newtoys.h generated/globals.htestdir \
+		generated/newtoys.h generated/globals.h testdir \
 		generated/Config.probed generated/oldtoys.h generated/flags.h \
 		generated/portability.h .singleconfig .singleconfig.old \
 		generated/instlist generated/mkflags generated/config2help \
--- a/toys/other/ifconfig.c	Fri Feb 28 20:46:16 2014 -0600
+++ b/toys/other/ifconfig.c	Fri Feb 28 23:04:57 2014 -0600
@@ -395,7 +395,7 @@
 
       ptr = p = (char *)sock->sa_data;
       memset(sock, 0, sizeof(struct sockaddr));
-      if (!argv[1]) {
+      if (argv[1]) {
         if (!strcmp("ether", *++argv)) sock->sa_family = ARPHRD_ETHER;
         else if (!strcmp("infiniband", *argv)) {
           sock->sa_family = ARPHRD_INFINIBAND;