diff options
author | Volker Lendecke <vl@samba.org> | 2010-12-10 23:02:19 +0100 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2010-12-19 23:25:06 +0100 |
commit | d39fedaa69b20e8f29fff9cd9a09c1bb1ecec7be (patch) | |
tree | c5b8a55f35f1e2edaf3d81662a7856ce84220c22 /source3/lib | |
parent | d082701ea5131b02a49321ef29d1aa58a80ee92a (diff) | |
download | samba-d39fedaa69b20e8f29fff9cd9a09c1bb1ecec7be.tar.gz samba-d39fedaa69b20e8f29fff9cd9a09c1bb1ecec7be.tar.bz2 samba-d39fedaa69b20e8f29fff9cd9a09c1bb1ecec7be.zip |
s3: FreeBSD has getpeereid(), use it
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/system.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |