From: Roy Marples Date: Mon, 23 Mar 2009 07:43:31 +0000 (+0000) Subject: We should not work with lo by default. X-Git-Tag: v5.0.0~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d377fcaa7c3de0f105d65644244167ff81d93484;p=thirdparty%2Fdhcpcd.git We should not work with lo by default. --- diff --git a/if-linux.c b/if-linux.c index d3bb88e8..a2ecda36 100644 --- a/if-linux.c +++ b/if-linux.c @@ -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;