summaryrefslogtreecommitdiffstats
path: root/if-linux.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-03-23 07:43:31 +0000
committerRoy Marples <roy@marples.name>2009-03-23 07:43:31 +0000
commitd377fcaa7c3de0f105d65644244167ff81d93484 (patch)
tree64811903007bbc073385e3f1c7eb0b5fe4fa395d /if-linux.c
parent12d3c36393a3dd6245c36dd08e42df2ca5f5aa03 (diff)
downloaddhcpcd-d377fcaa7c3de0f105d65644244167ff81d93484.tar.xz
We should not work with lo by default.
Diffstat (limited to 'if-linux.c')
-rw-r--r--if-linux.c3
1 files changed, 1 insertions, 2 deletions
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;