*** empty log message ***

svn path=/trunk/boinc/; revision=10942
This commit is contained in:
Charlie Fenton 2006-08-18 02:51:27 +00:00
parent 5d36a44f5d
commit b454541c30
4 changed files with 47 additions and 4 deletions

View File

@ -8935,3 +8935,17 @@ Rom 17 Aug 2006
clientgui/
MainDocument.cpp, .h
sg_BoincSimpleGUI.cpp
Charlie 17 Aug 2006
-Mac: Fixed a bug in check_security() when ID of group boinc_master != ID of
user boinc_master.
- Mac: XCode project sets S_ISUID and S_ISGID permission bits for stand-alone
client to aid in debugging.
- Update obsolete screensaver test code in ss_logic.C.
client/
check_security.C
ss_logic.C
mac_build/
boinc.xcodeproj/
project.pbxproj

View File

@ -134,8 +134,8 @@ int use_sandbox, int isManager
if ((sbuf.st_mode & (S_ISUID | S_ISGID)) != (S_ISUID | S_ISGID))
return -1005;
boinc_master_uid = sbuf.st_gid;
boinc_master_gid = sbuf.st_uid;
boinc_master_uid = sbuf.st_uid;
boinc_master_gid = sbuf.st_gid;
} else {
boinc_master_uid = geteuid();
boinc_master_gid = getegid();

View File

@ -103,7 +103,7 @@ void SS_LOGIC::reset() {
}
}
// called 10X per second
// called 1X per second
//
void SS_LOGIC::poll() {
ACTIVE_TASK* atp, *new_atp=0;
@ -117,9 +117,24 @@ void SS_LOGIC::poll() {
#if 0
// if you want to debug screensaver functionality...
#define BLANK_DELAY 15 /* seconds */
#define SAVER_PERIOD 7 /* seconds */
GRAPHICS_MSG gm;
static int foo=0;
foo++;
if (foo == 8) start_ss(time(0)+1000);
if (foo == (SAVER_PERIOD)) {
msg_printf(0, MSG_INFO,
"starting screensaver"
);
start_ss(gm, time(0)+BLANK_DELAY);
}
if (foo >= ((2*SAVER_PERIOD)+BLANK_DELAY)) {
msg_printf(0, MSG_INFO,
"resetting screensaver counter"
);
stop_ss();
foo = 0;
}
#endif
if (!do_ss) return;

View File

@ -2070,6 +2070,7 @@
DDD74D8407CF482E0065AC9D /* Sources */,
DDD74D8507CF482E0065AC9D /* Frameworks */,
DD46A43A088D1BEE00052C57 /* ShellScript */,
DD1B90070A954C9A00FF5591 /* ShellScript */,
);
buildRules = (
DD6826DF08641B1E0070CDB8 /* PBXBuildRule */,
@ -2202,6 +2203,19 @@
shellPath = /bin/sh;
shellScript = "cp -fpv \"${SRCROOT}/Installer-Info.plist\" \"${BUILT_PRODUCTS_DIR}/BOINC Installer.app/Contents/Info.plist\"";
};
DD1B90070A954C9A00FF5591 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "if [ \"$BUILD_STYLE\" != \"Deploy_noSandbox\" ] && [ \"$BUILD_STYLE\" != \"Dev_noSandbox\" ]; then\n chown -R ${USER}:${GROUP} \"${BUILT_PRODUCTS_DIR}/boinc\"\n chmod u+s,g+s \"${BUILT_PRODUCTS_DIR}/boinc\"\nfi";
};
DD3E15370A774397007E0084 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 12;