svn commit: samba r16940 - branches/SAMBA_3_0/source/nsswitch
trunk/source/nsswitch
gd at samba.org
gd at samba.org
Tue Jul 11 09:59:23 GMT 2006
Author: gd
Date: 2006-07-11 09:59:22 +0000 (Tue, 11 Jul 2006)
New Revision: 16940
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16940
Log:
libnscd sets errno, use that to display error message.
Guenther
Modified:
branches/SAMBA_3_0/source/nsswitch/winbindd_util.c
trunk/source/nsswitch/winbindd_util.c
Changeset:
Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_util.c
===================================================================
--- branches/SAMBA_3_0/source/nsswitch/winbindd_util.c 2006-07-11 09:22:55 UTC (rev 16939)
+++ branches/SAMBA_3_0/source/nsswitch/winbindd_util.c 2006-07-11 09:59:22 UTC (rev 16940)
@@ -1211,13 +1211,13 @@
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;
Modified: trunk/source/nsswitch/winbindd_util.c
===================================================================
--- trunk/source/nsswitch/winbindd_util.c 2006-07-11 09:22:55 UTC (rev 16939)
+++ trunk/source/nsswitch/winbindd_util.c 2006-07-11 09:59:22 UTC (rev 16940)
@@ -1211,13 +1211,13 @@
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;
More information about the samba-cvs
mailing list