mirror of https://github.com/BOINC/boinc.git
Mac Sandbox: attempt to fix bug where Manager reports that admin user is not authorized to run BOINC
svn path=/trunk/boinc/; revision=19707
This commit is contained in:
parent
9f4d6a14b1
commit
a449b19391
|
@ -666,11 +666,10 @@ bool IsUserInGroupBM() {
|
||||||
char *userName, *groupMember;
|
char *userName, *groupMember;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
grp = getgrgid(boinc_master_gid);
|
grp = getgrnam(REAL_BOINC_MASTER_NAME);
|
||||||
if (grp) {
|
if (grp) {
|
||||||
|
|
||||||
rgid = getgid();
|
rgid = getgid();
|
||||||
if (rgid == boinc_master_gid) {
|
if (rgid == grp->gr_gid) {
|
||||||
return true; // User's primary group is boinc_master
|
return true; // User's primary group is boinc_master
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue