mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-06 03:28:03 +02:00
core: normalize object paths on add_and_activate_connection
Without this patch I can not setup new hotspot connection. Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
66f02fc3f9
commit
0cb256f5d7
1 changed files with 6 additions and 0 deletions
|
|
@ -3407,6 +3407,12 @@ impl_manager_add_and_activate_connection (NMManager *self,
|
||||||
NMDevice *device = NULL;
|
NMDevice *device = NULL;
|
||||||
gboolean vpn = FALSE;
|
gboolean vpn = FALSE;
|
||||||
|
|
||||||
|
/* Normalize object paths */
|
||||||
|
if (g_strcmp0 (specific_object_path, "/") == 0)
|
||||||
|
specific_object_path = NULL;
|
||||||
|
if (g_strcmp0 (device_path, "/") == 0)
|
||||||
|
device_path = NULL;
|
||||||
|
|
||||||
/* Try to create a new connection with the given settings.
|
/* Try to create a new connection with the given settings.
|
||||||
* We allow empty settings for AddAndActivateConnection(). In that case,
|
* We allow empty settings for AddAndActivateConnection(). In that case,
|
||||||
* the connection will be completed in nm_utils_complete_generic() or
|
* the connection will be completed in nm_utils_complete_generic() or
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue