From 510b81b428ef8febcb85a0330a10cba01ad34e79 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 11 Jul 2006 09:59:22 +0000 Subject: r16940: libnscd sets errno, use that to display error message. Guenther (This used to be commit df10448e2c6166d1c129c2d9a9a74c5b4a42555f) --- source3/nsswitch/winbindd_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/nsswitch') 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; -- cgit