chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
network-internal: fix inverted matching
[elogind.git]
/
src
/
libsystemd-network
/
network-internal.c
diff --git
a/src/libsystemd-network/network-internal.c
b/src/libsystemd-network/network-internal.c
index 870858ccd7999905f9438ccd0b2c844f6e74850a..41f43d338988ad5de76602719e9f8a6e2d69061f 100644
(file)
--- 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)
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;
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)
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;
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)
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;
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)
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;
return true;
return false;