mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
sd-device-enumerator: fix inverted return value of match_initialized()
Fixes a bug introduced by d8b50e5df7.
Fixes https://github.com/systemd/systemd/pull/22662#issuecomment-1124163773.
Fixes RHBZ#2083374 (https://bugzilla.redhat.com/show_bug.cgi?id=2083374).
This commit is contained in:
committed by
Lennart Poettering
parent
d0880faa5d
commit
b692ad36b9
@@ -537,12 +537,12 @@ static int match_initialized(sd_device_enumerator *enumerator, sd_device *device
|
||||
return true;
|
||||
|
||||
if (sd_device_get_devnum(device, NULL) >= 0)
|
||||
return true;
|
||||
return false;
|
||||
|
||||
if (sd_device_get_ifindex(device, NULL) >= 0)
|
||||
return true;
|
||||
return false;
|
||||
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
return (enumerator->match_initialized == MATCH_INITIALIZED_NO) == (r == 0);
|
||||
|
||||
Reference in New Issue
Block a user