Blame SOURCES/0123-deskprofile-don-t-bail-if-we-fail-to-save-one-profil.patch

75e304
From 7f698a050cea2baad34c84f8ae9e611dbf03ac7f Mon Sep 17 00:00:00 2001
75e304
From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= <fidencio@redhat.com>
75e304
Date: Thu, 12 Jul 2018 23:55:03 +0200
75e304
Subject: [PATCH] deskprofile: don't bail if we fail to save one profile
75e304
MIME-Version: 1.0
75e304
Content-Type: text/plain; charset=UTF-8
75e304
Content-Transfer-Encoding: 8bit
75e304
75e304
Due to different reasons (a bug on fleet-commander, for instance?) we
75e304
may face the situation where one profile ends up stored in freeipa on a
75e304
half-broken state (with no data, for instance).
75e304
75e304
In case it happens, we should try our best to save the not broken
75e304
profiles and just skip the broken ones instead of bailing the whole
75e304
operation.
75e304
75e304
Resolves:
75e304
https://pagure.io/SSSD/sssd/issue/3773
75e304
75e304
Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com>
75e304
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
75e304
(cherry picked from commit efd6702e5f70bb3df0f840dd3ce9f8f9264661ba)
75e304
75e304
DOWNSTREAM:
75e304
Resolves: rhbz#1601360 - SSSD bails out saving desktop profiles in case an invalid profile is found [rhel-7.5.z]
75e304
---
75e304
 src/providers/ipa/ipa_session.c | 2 +-
75e304
 1 file changed, 1 insertion(+), 1 deletion(-)
75e304
75e304
diff --git a/src/providers/ipa/ipa_session.c b/src/providers/ipa/ipa_session.c
75e304
index 3c7dd33c30ac6331319fc62cac466c4fbf04c0a5..a93c21224ee4d539d412e61ea06cbde3b928416a 100644
75e304
--- a/src/providers/ipa/ipa_session.c
75e304
+++ b/src/providers/ipa/ipa_session.c
75e304
@@ -766,7 +766,7 @@ ipa_pam_session_handler_save_deskprofile_rules(
75e304
             DEBUG(SSSDBG_OP_FAILURE,
75e304
                   "Failed to save a Desktop Profile Rule to disk [%d]: %s\n",
75e304
                   ret, sss_strerror(ret));
75e304
-            goto done;
75e304
+            continue;
75e304
         }
75e304
     }
75e304
 
75e304
-- 
75e304
2.14.4
75e304