X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fnet-util.c;h=8f8cfc9fdb6d7fe6ece6b9ede732c13a85ec4d95;hb=c9ccc19f9eb0599109094c57b7a2f668d708f0c1;hp=85278e5de618d2efc9de816b07a4d571288783ab;hpb=4cd1214db6cf4b262e8ce6381bc710091b375c96;p=elogind.git diff --git a/src/shared/net-util.c b/src/shared/net-util.c index 85278e5de..8f8cfc9fd 100644 --- a/src/shared/net-util.c +++ b/src/shared/net-util.c @@ -49,7 +49,7 @@ bool net_match_config(const struct ether_addr *match_mac, if (match_driver && !streq_ptr(match_driver, dev_driver)) return 0; - if (match_type && !streq_ptr(match_type, dev_type) && !(streq(match_type, "ethernet") && !dev_type)) + if (match_type && !streq_ptr(match_type, dev_type)) return 0; if (match_name && !streq_ptr(match_name, dev_name))