summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-02-11 13:10:48 +0100
committerTom Gundersen <teg@jklm.no>2015-02-11 13:13:50 +0100
commit910889b6170cb484e0bf0b8a3a13c1ba6226ac07 (patch)
treeb7c73a27a339023c4835e1e2f2733103e9c82903 /src
parenta245ced0d7b0af9ae5438d978e24183672a0a4d9 (diff)
network-internal: fix inverted matching
This fixes the test-suite again.
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd-network/network-internal.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsystemd-network/network-internal.c b/src/libsystemd-network/network-internal.c
index 870858ccd7..41f43d3389 100644
--- a/src/libsystemd-network/network-internal.c
+++ b/src/libsystemd-network/network-internal.c
@@ -122,7 +122,7 @@ bool net_match_config(const struct ether_addr *match_mac,
return false;
STRV_FOREACH(match_path, match_paths)
- if (fnmatch(*match_path, dev_path, 0) != 0)
+ if (fnmatch(*match_path, dev_path, 0) == 0)
return true;
return false;
@@ -133,7 +133,7 @@ bool net_match_config(const struct ether_addr *match_mac,
return false;
STRV_FOREACH(match_driver, match_drivers)
- if (fnmatch(*match_driver, dev_driver, 0) != 0)
+ if (fnmatch(*match_driver, dev_driver, 0) == 0)
return true;
return false;
@@ -144,7 +144,7 @@ bool net_match_config(const struct ether_addr *match_mac,
return false;
STRV_FOREACH(match_type, match_types)
- if (fnmatch(*match_type, dev_type, 0) != 0)
+ if (fnmatch(*match_type, dev_type, 0) == 0)
return true;
return false;
@@ -155,7 +155,7 @@ bool net_match_config(const struct ether_addr *match_mac,
return false;
STRV_FOREACH(match_name, match_names)
- if (fnmatch(*match_name, dev_name, 0) != 0)
+ if (fnmatch(*match_name, dev_name, 0) == 0)
return true;
return false;