diff options
author | Michal Zidek <mzidek@redhat.com> | 2014-04-23 20:45:07 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-04-25 10:47:38 +0200 |
commit | 8e09148b68a3fd8b06fcb746054f3cfa250b40f8 (patch) | |
tree | 1cd151ed7321df38754a35ed171cc7825a71d677 /src/responder/nss | |
parent | 1a94716209e40a9ccaedc7e70f9de961d1cced48 (diff) | |
download | sssd-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.c | 1 |
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)); |