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:35:38 +0100 |
commit | 4eaa0cb982a58088680f974429b48ddf23b5825e (patch) | |
tree | 1cc9cf8a065b1fb9ff28562cd3556688328e442a /src/responder/nss | |
parent | 20c2bd06b530866a3c9670e6d0da266e7279db5e (diff) | |
download | sssd-4eaa0cb982a58088680f974429b48ddf23b5825e.tar.gz sssd-4eaa0cb982a58088680f974429b48ddf23b5825e.tar.bz2 sssd-4eaa0cb982a58088680f974429b48ddf23b5825e.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')
-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 6273b763..ec05f761 100644 --- a/src/responder/nss/nsssrv_mmap_cache.c +++ b/src/responder/nss/nsssrv_mmap_cache.c @@ -826,6 +826,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; |