Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 32 lines 1.3 kB view raw
1diff --git a/src/wireless-security/eap-method.c b/src/wireless-security/eap-method.c 2index 2e9daa23..6663b3ce 100644 3--- a/src/wireless-security/eap-method.c 4+++ b/src/wireless-security/eap-method.c 5@@ -265,8 +265,11 @@ eap_method_ca_cert_ignore_get (EAPMethod *method, NMConnection *connection) 6 static GSettings * 7 _get_ca_ignore_settings (NMConnection *connection) 8 { 9+ GSettingsSchemaSource *schema_source; 10+ g_autoptr (GSettingsSchema) *schema; 11 GSettings *settings; 12- char *path = NULL; 13+ 14+ g_autofree char *path = NULL; 15 const char *uuid; 16 17 g_return_val_if_fail (connection, NULL); 18@@ -274,9 +277,12 @@ _get_ca_ignore_settings (NMConnection *connection) 19 uuid = nm_connection_get_uuid (connection); 20 g_return_val_if_fail (uuid && *uuid, NULL); 21 22+ schema_source = g_settings_schema_source_new_from_directory ("@NM_APPLET_GSETTINGS@", g_settings_schema_source_get_default (), TRUE, NULL); 23+ schema = g_settings_schema_source_lookup (schema_source, "org.gnome.nm-applet.eap", FALSE); 24+ g_settings_schema_source_unref (schema_source); 25+ 26 path = g_strdup_printf ("/org/gnome/nm-applet/eap/%s/", uuid); 27- settings = g_settings_new_with_path ("org.gnome.nm-applet.eap", path); 28- g_free (path); 29+ settings = g_settings_new_full (schema, NULL, path); 30 31 return settings; 32 }