From a449b193911e70ee1c34646bbdc1cbdcc0d1f2a9 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Wed, 25 Nov 2009 12:43:43 +0000 Subject: [PATCH] Mac Sandbox: attempt to fix bug where Manager reports that admin user is not authorized to run BOINC svn path=/trunk/boinc/; revision=19707 --- client/check_security.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/check_security.cpp b/client/check_security.cpp index 099b027daf..d3e5297b40 100644 --- a/client/check_security.cpp +++ b/client/check_security.cpp @@ -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 }