summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-03-20 09:01:33 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-03-20 09:04:42 -0400
commit0d3bd5e0dbdd7579b64cec0b0e93605a3c37cdc1 (patch)
treeb1412723c4c6be3a39711dc04e4fa793cf32a35f
parent10eae23e2483733d4ca3c21f15b5bdb3f04c9839 (diff)
downloadsssd-0d3bd5e0dbdd7579b64cec0b0e93605a3c37cdc1.tar.gz
sssd-0d3bd5e0dbdd7579b64cec0b0e93605a3c37cdc1.tar.bz2
sssd-0d3bd5e0dbdd7579b64cec0b0e93605a3c37cdc1.zip
NSS: Fix debug message
-rw-r--r--src/responder/nss/nsssrv_mmap_cache.c2
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)));
}