summaryrefslogtreecommitdiffstats
path: root/net.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-09-01 07:45:11 +0000
committerRoy Marples <roy@marples.name>2009-09-01 07:45:11 +0000
commit6b8f0f11ba0bc8df79b10a6aeb8b1b434a9b8f21 (patch)
tree87615b0d508f4aa5363179654a1ce5abcca7d529 /net.c
parentd9458265513965001b7bd5da6ca065c1ebd48b4b (diff)
downloaddhcpcd-6b8f0f11ba0bc8df79b10a6aeb8b1b434a9b8f21.tar.xz
We should not affect other interfaces when handling new interface
notifications.
Diffstat (limited to 'net.c')
-rw-r--r--net.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net.c b/net.c
index 1ff798c9..b9b75681 100644
--- a/net.c
+++ b/net.c
@@ -307,6 +307,11 @@ discover_interfaces(int argc, char * const *argv)
continue;
p = argv[i];
} else {
+ /* -1 means we're discovering against a specific
+ * interface, but we still need the below rules
+ * to apply. */
+ if (argc == -1 && strcmp(argv[0], ifa->ifa_name) != 0)
+ continue;
for (i = 0; i < ifdc; i++)
if (!fnmatch(ifdv[i], ifa->ifa_name, 0))
break;