From 26ef9fa37ef19709b214e230b4e4ee6d61120d30 Mon Sep 17 00:00:00 2001 From: Michal Zidek Date: Thu, 7 Mar 2013 17:25:05 +0100 Subject: Debug message in sss_mc_create_file. This patch adds debug message for the case if sssd fails to open old mc file for some other reason than the file does not exist. --- src/responder/nss/nsssrv_mmap_cache.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/responder/nss/nsssrv_mmap_cache.c b/src/responder/nss/nsssrv_mmap_cache.c index 22efce1c6..6cd359495 100644 --- a/src/responder/nss/nsssrv_mmap_cache.c +++ b/src/responder/nss/nsssrv_mmap_cache.c @@ -792,6 +792,11 @@ static errno_t sss_mc_create_file(struct sss_mc_ctx *mc_ctx) } close(ofd); + } else if (errno != ENOENT) { + ret = errno; + DEBUG(SSSDBG_CRIT_FAILURE, + ("Failed to open old memory cache file %s: %d(%s).\n", + mc_ctx->file, ret, strerror(ret))); } errno = 0; -- cgit