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:
Charlie Fenton 2009-11-25 12:43:43 +00:00
parent 9f4d6a14b1
commit a449b19391
1 changed files with 2 additions and 3 deletions

View File

@ -666,11 +666,10 @@ bool IsUserInGroupBM() {
char *userName, *groupMember;
int i;
grp = getgrgid(boinc_master_gid);
grp = getgrnam(REAL_BOINC_MASTER_NAME);
if (grp) {
rgid = getgid();
if (rgid == boinc_master_gid) {
if (rgid == grp->gr_gid) {
return true; // User's primary group is boinc_master
}