From ba691292983ee920b3dd67b44144f7e24d23eca4 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) (cherry picked from commit 950b7d573b884907a2235b1c199c656d09d91723) (cherry picked from commit 2695d102780e480c832dd4243dd2df2814e74ab0) --- 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 daa23c763d..fdd5a4339b 100644 --- a/libnm/nm-device.c +++ b/libnm/nm-device.c @@ -1304,7 +1304,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. **/ @@ -1318,7 +1318,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); }