summaryrefslogtreecommitdiffstats
path: root/src/responder/nss
diff options
context:
space:
mode:
authorMichal Zidek <mzidek@redhat.com>2014-04-23 20:45:07 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-04-25 10:47:38 +0200
commit8e09148b68a3fd8b06fcb746054f3cfa250b40f8 (patch)
tree1cd151ed7321df38754a35ed171cc7825a71d677 /src/responder/nss
parent1a94716209e40a9ccaedc7e70f9de961d1cced48 (diff)
downloadsssd-8e09148b68a3fd8b06fcb746054f3cfa250b40f8.tar.gz
sssd-8e09148b68a3fd8b06fcb746054f3cfa250b40f8.tar.xz
sssd-8e09148b68a3fd8b06fcb746054f3cfa250b40f8.zip
mmap: Get errno when unlink fails
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/responder/nss')
-rw-r--r--src/responder/nss/nsssrv_mmap_cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/responder/nss/nsssrv_mmap_cache.c b/src/responder/nss/nsssrv_mmap_cache.c
index 8072bb38e..41846d565 100644
--- a/src/responder/nss/nsssrv_mmap_cache.c
+++ b/src/responder/nss/nsssrv_mmap_cache.c
@@ -1241,6 +1241,7 @@ done:
if (mc_ctx && mc_ctx->file && mc_ctx->fd != -1) {
dret = unlink(mc_ctx->file);
if (dret == -1) {
+ dret = errno;
DEBUG(SSSDBG_CRIT_FAILURE,
"Failed to rm mmap file %s: %d(%s)\n", mc_ctx->file,
dret, strerror(dret));