Message type for PM_GETGID

Change-Id: If3f788b0ad5a7389a62ecec3da78d6d71090f9a8
This commit is contained in:
2014-05-13 14:47:11 +02:00
parent ba70f58845
commit b9939b3ed8
4 changed files with 11 additions and 6 deletions

View File

@@ -15,6 +15,6 @@ gid_t getegid(void)
* are not always successful and Minix returns the unreserved value
* (gid_t) -1 when there is an error.
*/
if (_syscall(PM_PROC_NR, PM_GETGID, &m) < 0) return ( (gid_t) -1);
return( (gid_t) m.PM_GETGID_EGID);
if (_syscall(PM_PROC_NR, PM_GETGID, &m) < 0) return(-1);
return(m.m_pm_lc_getgid.egid);
}