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 commit b7b0227935)
This commit is contained in:
Lubomir Rintel
2017-04-06 13:16:04 +02:00
parent b2596511be
commit d77449314a

View File

@@ -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