From 671f456761fc66649260e831ceee36ec3d4ba9ca Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 05:34:56 +0200 Subject: Merging upstream version 3.4. Signed-off-by: Daniel Baumann --- compat/getpeereid.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'compat/getpeereid.c') diff --git a/compat/getpeereid.c b/compat/getpeereid.c index c194e88..b79f420 100644 --- a/compat/getpeereid.c +++ b/compat/getpeereid.c @@ -18,6 +18,7 @@ #include #include +#include #ifdef HAVE_UCRED_H #include @@ -49,6 +50,8 @@ getpeereid(int s, uid_t *uid, gid_t *gid) ucred_free(ucred); return (0); #else - return (getuid()); + *uid = geteuid(); + *gid = getegid(); + return (0); #endif } -- cgit v1.2.3