mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-16 09:40:35 +01:00
linux-platform: fix link_get_unmanaged() return value
The function is supposed to set *unamanged to NM_UNMANAGED's and indicate
whether NM_UNMANAGED was present in the return value.
Fixes: e32839838e
This commit is contained in:
parent
bac864725b
commit
b7b0227935
1 changed files with 4 additions and 1 deletions
|
|
@ -4412,8 +4412,11 @@ link_get_unmanaged (NMPlatform *platform, int ifindex, gboolean *unmanaged)
|
|||
return FALSE;
|
||||
|
||||
uproperty = udev_device_get_property_value (udevice, "NM_UNMANAGED");
|
||||
if (!uproperty)
|
||||
return FALSE;
|
||||
|
||||
return nm_udev_utils_property_as_boolean (uproperty);
|
||||
*unmanaged = nm_udev_utils_property_as_boolean (uproperty);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue