Remove extra definition of getpeereid. From Eric N Vander Weele in GitHub issue

3209.
pull/3212/head
Nicholas Marriott 2022-06-02 21:44:28 +01:00
parent c1ac007576
commit be2617036f
1 changed files with 0 additions and 4 deletions

View File

@ -38,9 +38,6 @@ getpeereid(int s, uid_t *uid, gid_t *gid)
*gid = uc.gid;
return (0);
#elif defined(HAVE_GETPEERUCRED)
int
getpeereid(int s, uid_t *uid, gid_t *gid)
{
ucred_t *ucred = NULL;
if (getpeerucred(s, &ucred) == -1)
@ -51,7 +48,6 @@ getpeereid(int s, uid_t *uid, gid_t *gid)
return (-1);
ucred_free(ucred);
return (0);
}
#else
return (getuid());
#endif