From d39fedaa69b20e8f29fff9cd9a09c1bb1ecec7be Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 10 Dec 2010 23:02:19 +0100 Subject: s3: FreeBSD has getpeereid(), use it --- source3/lib/system.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/lib') diff --git a/source3/lib/system.c b/source3/lib/system.c index 1c00ad87e4..02322b72b5 100644 --- a/source3/lib/system.c +++ b/source3/lib/system.c @@ -2630,6 +2630,10 @@ int sys_getpeereid( int s, uid_t *uid) *uid = cred.uid; return 0; #else +#if defined(HAVE_GETPEEREID) + gid_t gid; + return getpeereid(s, uid, &gid); +#endif errno = ENOSYS; return -1; #endif -- cgit