svn commit: samba r17630 - in branches/SAMBA_3_0/source: lib nsswitch

jra at samba.org jra at samba.org
Sun Aug 20 20:05:49 GMT 2006


Author: jra
Date: 2006-08-20 20:05:49 +0000 (Sun, 20 Aug 2006)
New Revision: 17630

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17630

Log:
Looks like getpeerid() is a system function on
FreeBSD. Change to sys_getpeerid(). Thanks to
vl for pointing this out.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/lib/system.c
   branches/SAMBA_3_0/source/nsswitch/winbindd_ccache_access.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/system.c
===================================================================
--- branches/SAMBA_3_0/source/lib/system.c	2006-08-20 19:27:24 UTC (rev 17629)
+++ branches/SAMBA_3_0/source/lib/system.c	2006-08-20 20:05:49 UTC (rev 17630)
@@ -2243,7 +2243,7 @@
 }
 #endif /* WITH_AIO */
 
-int getpeereid( int s, uid_t *uid)
+int sys_getpeereid( int s, uid_t *uid)
 {
 #if defined(HAVE_PEERCRED)
 	struct ucred cred;

Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_ccache_access.c
===================================================================
--- branches/SAMBA_3_0/source/nsswitch/winbindd_ccache_access.c	2006-08-20 19:27:24 UTC (rev 17629)
+++ branches/SAMBA_3_0/source/nsswitch/winbindd_ccache_access.c	2006-08-20 20:05:49 UTC (rev 17630)
@@ -130,7 +130,7 @@
 
 	ret_uid = (uid_t)-1;
 
-	ret = getpeereid(state->sock, &ret_uid);
+	ret = sys_getpeereid(state->sock, &ret_uid);
 	if (ret != 0) {
 		DEBUG(1, ("check_client_uid: Could not get socket peer uid: %s; "
 			"denying access\n", strerror(errno)));



More information about the samba-cvs mailing list