mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-24 21:34:08 +03:00
network-internal: fix inverted matching
This fixes the test-suite again.
This commit is contained in:
parent
a245ced0d7
commit
910889b617
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user