mirror of https://github.com/BOINC/boinc.git
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:
parent
c7d766f6d7
commit
c27a896fff
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue