Commit 52d8dd87 authored by Geoff Simmons's avatar Geoff Simmons

VMOD unix obtains effective uid/gid on solarishy platforms.

Not real ids; for consistency with the other platforms.
parent c4788f90
......@@ -105,8 +105,8 @@ get_ids(int fd, uid_t *uid, gid_t *gid)
errno = 0;
if (getpeerucred(fd, &ucredp))
return (CREDS_FAIL);
*uid = ucred_getruid(ucredp);
*gid = ucred_getrgid(ucredp);
*uid = ucred_geteuid(ucredp);
*gid = ucred_getegid(ucredp);
# if defined(HAVE_SETPPRIV)
if (priv != NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment