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
(cherry picked from commitb7b0227935
)
This commit is contained in:
@@ -4412,8 +4412,11 @@ link_get_unmanaged (NMPlatform *platform, int ifindex, gboolean *unmanaged)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
uproperty = udev_device_get_property_value (udevice, "NM_UNMANAGED");
|
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
|
static gboolean
|
||||||
|
Reference in New Issue
Block a user