Commit 559f75fd authored by Geoff Simmons's avatar Geoff Simmons Committed by Dridi Boukelmoune

VMOD unix obtains effective uid/gid on solarishy platforms.

Not real ids; for consistency with the other platforms.
parent 35f79a69
......@@ -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