]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
We should not work with lo by default.
authorRoy Marples <roy@marples.name>
Mon, 23 Mar 2009 07:43:31 +0000 (07:43 +0000)
committerRoy Marples <roy@marples.name>
Mon, 23 Mar 2009 07:43:31 +0000 (07:43 +0000)
if-linux.c

index d3bb88e8be33f1d4fbfabe1722896ac4baa8d1d8..a2ecda36526253baf9de242fe1c99eff91f4b1f2 100644 (file)
@@ -563,8 +563,7 @@ discover_interfaces(int argc, char * const *argv)
                        if ((ifp = init_interface(p))) {
                                /* Don't allow loopback unless explicit */
                                if (ifp->flags & IFF_LOOPBACK &&
-                                   argc == 0 &&
-                                   ifdc == 0)
+                                   (argc != 0 || ifdc != 0))
                                {
                                        free_interface(ifp);
                                        continue;