diff options
| author | Roy Marples <roy@marples.name> | 2009-09-01 07:45:11 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-09-01 07:45:11 +0000 |
| commit | 6b8f0f11ba0bc8df79b10a6aeb8b1b434a9b8f21 (patch) | |
| tree | 87615b0d508f4aa5363179654a1ce5abcca7d529 /net.c | |
| parent | d9458265513965001b7bd5da6ca065c1ebd48b4b (diff) | |
| download | dhcpcd-6b8f0f11ba0bc8df79b10a6aeb8b1b434a9b8f21.tar.xz | |
We should not affect other interfaces when handling new interface
notifications.
Diffstat (limited to 'net.c')
| -rw-r--r-- | net.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |
