Previous "fix" wasn't good enough.
authorDenis Vlasenko <vda.linux@googlemail.com>
Sun, 7 Jan 2007 22:23:38 +0000 (22:23 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sun, 7 Jan 2007 22:23:38 +0000 (22:23 -0000)
Now *this* is the correct fix (I think).

networking/arp.c

index 872d44b0bfd5290067ce86b2e6d8131049b031d0..6bd12656a6521d62248e10021c227a92537bc064 100644 (file)
@@ -408,7 +408,7 @@ static int arp_show(char *name)
                                continue;
 
                        /* if the user specified device differs, skip it */
-                       if (device[0])
+                       if (device[0] && strcmp(dev, device) != 0)
                                continue;
 
                        shown++;