From 82642b3b622ef043ff497709fc1ddb1b2ab5328d Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 25 Apr 2017 10:15:59 +0200 Subject: [PATCH] FIXUP: Actually save the changes to the services lines --- service/realm-sssd-ad.c | 3 ++- service/realm-sssd-ipa.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/service/realm-sssd-ad.c b/service/realm-sssd-ad.c index 5fa81ce..8543ca8 100644 --- a/service/realm-sssd-ad.c +++ b/service/realm-sssd-ad.c @@ -207,7 +207,8 @@ configure_sssd_for_domain (RealmIniConfig *config, "ldap_sasl_authid", authid, NULL); - realm_ini_config_set_list_diff (config, "sssd", "services", ", ", services, NULL); + if (ret) + ret = realm_ini_config_change_list (config, "sssd", "services", ", ", services, NULL, error); g_free (authid); g_string_free (realmd_tags, TRUE); diff --git a/service/realm-sssd-ipa.c b/service/realm-sssd-ipa.c index 001870d..ff1dc8a 100644 --- a/service/realm-sssd-ipa.c +++ b/service/realm-sssd-ipa.c @@ -208,7 +208,8 @@ on_ipa_client_do_restart (GObject *source, "realmd_tags", realmd_tags, NULL); - realm_ini_config_set_list_diff (config, "sssd", "services", ", ", services, NULL); + if (error == NULL) + realm_ini_config_change_list (config, "sssd", "services", ", ", services, NULL, &error); g_free (home); } -- 2.7.4