summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-08-20 20:05:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:44 -0500
commit0ff47065829abc1478353cae367a5340561f7bd5 (patch)
treed9be5b5aad61b689c188ec898deb5520064df0d2
parentf852fdbe06ec9f19424d6870cba9b1872a0d5d7a (diff)
downloadsamba-0ff47065829abc1478353cae367a5340561f7bd5.tar.gz
samba-0ff47065829abc1478353cae367a5340561f7bd5.tar.bz2
samba-0ff47065829abc1478353cae367a5340561f7bd5.zip
r17630: Looks like getpeerid() is a system function on
FreeBSD. Change to sys_getpeerid(). Thanks to vl for pointing this out. Jeremy. (This used to be commit dd0069cfcabb25dc7dc0d336696a5f2580abb5a1)
-rw-r--r--source3/lib/system.c2
-rw-r--r--source3/nsswitch/winbindd_ccache_access.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c
index bd7e4b8a67..42f9615c9e 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -2243,7 +2243,7 @@ int sys_aio_suspend(const SMB_STRUCT_AIOCB * const cblist[], int n, const struct
}
#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;
diff --git a/source3/nsswitch/winbindd_ccache_access.c b/source3/nsswitch/winbindd_ccache_access.c
index 6ac3942a8d..d17f15ae9f 100644
--- a/source3/nsswitch/winbindd_ccache_access.c
+++ b/source3/nsswitch/winbindd_ccache_access.c
@@ -130,7 +130,7 @@ static BOOL check_client_uid(struct winbindd_cli_state *state, uid_t uid)
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)));