From 365cd676c9fbeed8246c4e0c017dcac0c72a2526 Mon Sep 17 00:00:00 2001 From: Alexey Tikhonov Date: Tue, 10 Aug 2021 18:21:56 +0200 Subject: [PATCH] NSS: don't treat absent 'CLEAR_MC_FLAG' as an error (This is expected in case of SIGHUP sent for log rotation.) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Pavel Březina --- src/responder/nss/nsssrv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/responder/nss/nsssrv.c b/src/responder/nss/nsssrv.c index 9c5907d86..526d97b08 100644 --- a/src/responder/nss/nsssrv.c +++ b/src/responder/nss/nsssrv.c @@ -63,7 +63,7 @@ nss_clear_memcache(TALLOC_CTX *mem_ctx, if (ret == ENOENT) { DEBUG(SSSDBG_TRACE_FUNC, "CLEAR_MC_FLAG not found. Nothing to do.\n"); - return ret; + return EOK; /* Most probably log rotation SIGHUP to monitor */ } else { DEBUG(SSSDBG_CRIT_FAILURE, "Failed to check existence of "CLEAR_MC_FLAG": %s.\n", -- 2.26.3