1.1 --- a/src/os/bsd/vm/attachListener_bsd.cpp Thu Oct 25 16:33:40 2012 -0400 1.2 +++ b/src/os/bsd/vm/attachListener_bsd.cpp Mon Oct 29 21:04:17 2012 +0100 1.3 @@ -342,7 +342,6 @@ 1.4 1.5 // get the credentials of the peer and check the effective uid/guid 1.6 // - check with jeff on this. 1.7 -#ifdef _ALLBSD_SOURCE 1.8 uid_t puid; 1.9 gid_t pgid; 1.10 if (::getpeereid(s, &puid, &pgid) != 0) { 1.11 @@ -350,17 +349,6 @@ 1.12 RESTARTABLE(::close(s), res); 1.13 continue; 1.14 } 1.15 -#else 1.16 - struct ucred cred_info; 1.17 - socklen_t optlen = sizeof(cred_info); 1.18 - if (::getsockopt(s, SOL_SOCKET, SO_PEERCRED, (void*)&cred_info, &optlen) == -1) { 1.19 - int res; 1.20 - RESTARTABLE(::close(s), res); 1.21 - continue; 1.22 - } 1.23 - uid_t puid = cred_info.uid; 1.24 - gid_t pgid = cred_info.gid; 1.25 -#endif 1.26 uid_t euid = geteuid(); 1.27 gid_t egid = getegid(); 1.28