Mac installer: under OS 10.4, create boinc_master and boinc_project at IDs starting at 25 instead of 501

svn path=/trunk/boinc/; revision=25106
This commit is contained in:
Charlie Fenton 2012-01-19 11:28:32 +00:00
parent c7d766f6d7
commit c27a896fff
2 changed files with 19 additions and 0 deletions

View File

@ -739,3 +739,13 @@ David 19 Jan 2012
version.h
ssim/
ssim.php
Charlie 19 Jan 2012
- Mac installer: If installing under OS 10.4, create users and groups
boinc_master and boinc_project at first available UserIDs and
GroupIDs starting at 25 instead of 501 to prevent problems with
Accounts pane of System Preferences.
clientgui/
mac/
SetupSecurity.cpp

View File

@ -721,6 +721,15 @@ static OSStatus CreateUserAndGroup(char * user_name, char * group_name) {
char buf1[80];
char buf2[80];
char buf3[80];
SInt32 response;
err = Gestalt(gestaltSystemVersion, &response);
if (err) return err;
// OS 10.4 has problems with Accounts pane if we create uid or gid > 501
if (response < 0x1050) {
start_id = 25;
}
pw = getpwnam(user_name);
if (pw) {