Change internal gid datatype from __gid16_t to __gid32_t
throughout. * cygwin.din: Export new symbols chown32, fchown32, getegid32, getgid32, getgrgid32, getgrnam32, getgroups32, initgroups32, lchown32, setgid32, setegid32, getgrent32. * grp.cc (grp32togrp16): New static function. (getgrgid32): New function. (getgrnam32): Ditto. (getgrent32): Ditto. (getgroups32): Change name of internal function from getgroups. (getgroups32): New function. (initgroups32): Ditto. * syscalls.cc (chown32): Ditto. (lchown32): Ditto. (fchown32): Ditto. (setegid32): Ditto. (setgid32): Ditto. * uinfo.cc (getgid32): Ditto. (getegid32): Ditto. * include/cygwin/grp.h: Remove declaration of getgrgid() and getgrnam(). Declare getgrgid32() and getgrnam32() instead. Declare getgid32().
This commit is contained in:
@ -173,7 +173,7 @@ internal_getlogin (cygheap_user &user)
|
||||
if (psid.getfrompw (pw) && EqualSid (user.sid (), psid))
|
||||
{
|
||||
user.set_name (pw->pw_name);
|
||||
struct __group16 *gr = getgrgid (pw->pw_gid);
|
||||
struct __group32 *gr = getgrgid32 (pw->pw_gid);
|
||||
if (gr)
|
||||
if (!gsid.getfromgr (gr))
|
||||
gsid = NO_SID;
|
||||
@ -288,6 +288,12 @@ getuid (void)
|
||||
return cygheap->user.real_uid;
|
||||
}
|
||||
|
||||
extern "C" __gid32_t
|
||||
getgid32 (void)
|
||||
{
|
||||
return cygheap->user.real_gid;
|
||||
}
|
||||
|
||||
extern "C" __gid16_t
|
||||
getgid (void)
|
||||
{
|
||||
@ -300,6 +306,12 @@ geteuid (void)
|
||||
return myself->uid;
|
||||
}
|
||||
|
||||
extern "C" __gid32_t
|
||||
getegid32 (void)
|
||||
{
|
||||
return myself->gid;
|
||||
}
|
||||
|
||||
extern "C" __gid16_t
|
||||
getegid (void)
|
||||
{
|
||||
|
Reference in New Issue
Block a user