From 77d63f561830c15341b2ffe915a4c86b3c0f88a3 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Apr 27 2018 11:45:48 +0000 Subject: FILES: Only send the request for update if the files domain is inconsistent Resolves: https://pagure.io/SSSD/sssd/issue/3520 The code was probably commented out as a mistake.. Reviewed-by: Pavel Březina --- diff --git a/src/responder/common/responder_dp.c b/src/responder/common/responder_dp.c index 8cc7348..9669b5f 100644 --- a/src/responder/common/responder_dp.c +++ b/src/responder/common/responder_dp.c @@ -598,11 +598,11 @@ static int sss_dp_account_files_params(struct sss_domain_info *dom, enum sss_dp_acct_type *_type_out, const char **_opt_name_out) { -#if 0 if (sss_domain_get_state(dom) != DOM_INCONSISTENT) { + DEBUG(SSSDBG_TRACE_INTERNAL, + "The entries in the files domain are up-to-date\n"); return EOK; } -#endif DEBUG(SSSDBG_TRACE_INTERNAL, "Domain files is not consistent, issuing update\n");