diff options
author | Michal Zidek <mzidek@redhat.com> | 2013-03-07 17:25:05 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-03-07 18:47:58 +0100 |
commit | 2404777fc6775b740182a4df273e02888f0f4d83 (patch) | |
tree | 88f8ac575c4a37bc2c35b182b3c684c0e147969c /src/responder/nss/nsssrv_mmap_cache.c | |
parent | 04100112f48401a5453199e428b2a930e0bb9599 (diff) | |
download | sssd-2404777fc6775b740182a4df273e02888f0f4d83.tar.gz sssd-2404777fc6775b740182a4df273e02888f0f4d83.tar.xz sssd-2404777fc6775b740182a4df273e02888f0f4d83.zip |
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.
Diffstat (limited to 'src/responder/nss/nsssrv_mmap_cache.c')
-rw-r--r-- | src/responder/nss/nsssrv_mmap_cache.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/responder/nss/nsssrv_mmap_cache.c b/src/responder/nss/nsssrv_mmap_cache.c index 6fb9c7e26..1023805a3 100644 --- a/src/responder/nss/nsssrv_mmap_cache.c +++ b/src/responder/nss/nsssrv_mmap_cache.c @@ -816,6 +816,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; |