From 950b7d573b884907a2235b1c199c656d09d91723 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 9 Apr 2021 12:35:26 +0200 Subject: [PATCH] libnm: fix nm_device_set_autoconnect() to use correct D-Bus property name Fixes: ce0e898fb476 ('libnm: refactor caching of D-Bus objects in NMClient') (cherry picked from commit 6b64fac06d2f6e0d9fa530ebb1ab28d53a1c5d03) --- libnm/nm-device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libnm/nm-device.c b/libnm/nm-device.c index 9cb88dae8e..e9e8feccd7 100644 --- a/libnm/nm-device.c +++ b/libnm/nm-device.c @@ -1386,7 +1386,7 @@ nm_device_get_autoconnect(NMDevice *device) * Enables or disables automatic activation of the #NMDevice. * * Deprecated: 1.22: Use the async command nm_client_dbus_set_property() on - * nm_object_get_path(), %NM_DBUS_INTERFACE_DEVICE to set "AutoConnect" property to a "(b)" value. + * nm_object_get_path(), %NM_DBUS_INTERFACE_DEVICE to set "Autoconnect" property to a "(b)" value. * This function is deprecated because it calls a synchronous D-Bus method * and modifies the content of the NMClient cache client side. **/ @@ -1400,7 +1400,7 @@ nm_device_set_autoconnect(NMDevice *device, gboolean autoconnect) _nm_client_set_property_sync_legacy(_nm_object_get_client(device), _nm_object_get_path(device), NM_DBUS_INTERFACE_DEVICE, - "AutoConnect", + "Autoconnect", "b", autoconnect); }