summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-07-11 09:59:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:19:12 -0500
commit510b81b428ef8febcb85a0330a10cba01ad34e79 (patch)
treeef6a3c58b09597dc66da0bbcaf0cbd73021a7c03 /source3/nsswitch
parent44f2d54db2cad7b64d87090838d4adc472838147 (diff)
downloadsamba-510b81b428ef8febcb85a0330a10cba01ad34e79.tar.gz
samba-510b81b428ef8febcb85a0330a10cba01ad34e79.tar.bz2
samba-510b81b428ef8febcb85a0330a10cba01ad34e79.zip
r16940: libnscd sets errno, use that to display error message.
Guenther (This used to be commit df10448e2c6166d1c129c2d9a9a74c5b4a42555f)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/nsswitch/winbindd_util.c b/source3/nsswitch/winbindd_util.c
index d974ad8c56..67b94817ad 100644
--- a/source3/nsswitch/winbindd_util.c
+++ b/source3/nsswitch/winbindd_util.c
@@ -1211,13 +1211,13 @@ void winbindd_flush_nscd_cache(void)
int ret = nscd_flush_cache("passwd");
if (ret) {
DEBUG(5,("failed to flush nscd cache for 'passwd' service: %s\n",
- strerror(ret)));
+ strerror(errno)));
}
ret = nscd_flush_cache("group");
if (ret) {
DEBUG(5,("failed to flush nscd cache for 'group' service: %s\n",
- strerror(ret)));
+ strerror(errno)));
}
#else
return;