diff options
-rw-r--r-- | src/responder/nss/nsssrv_mmap_cache.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/responder/nss/nsssrv_mmap_cache.c b/src/responder/nss/nsssrv_mmap_cache.c index 18fc8b1c..7a7a498b 100644 --- a/src/responder/nss/nsssrv_mmap_cache.c +++ b/src/responder/nss/nsssrv_mmap_cache.c @@ -550,8 +550,10 @@ static errno_t sss_mc_create_file(struct sss_mc_ctx *mc_ctx) close(ofd); } + errno = 0; ret = unlink(mc_ctx->file); if (ret == -1) { + ret = errno; DEBUG(SSSDBG_TRACE_FUNC, ("Failed to rm mmap file %s: %d(%s)\n", mc_ctx->file, ret, strerror(ret))); } |