*** empty log message ***

svn path=/trunk/boinc/; revision=10804
This commit is contained in:
Charlie Fenton 2006-08-01 13:13:49 +00:00
parent 6ecd5de4d9
commit fdc99b8984
1 changed files with 7 additions and 3 deletions

View File

@ -269,18 +269,22 @@ bool CBOINCGUIApp::OnInit() {
#ifdef SANDBOX #ifdef SANDBOX
g_use_sandbox = true; g_use_sandbox = true;
#else
g_use_sandbox = false;
#endif
#ifdef SANDBOX
// Commandline parsing is done in wxApp::OnInit() // Commandline parsing is done in wxApp::OnInit()
if (!wxApp::OnInit()) { // Command line arg -insecure sets g_use_sandbox to false if (!wxApp::OnInit()) { // Command line arg -insecure sets g_use_sandbox to false
return false; return false;
} }
#endif
#ifndef _WIN32 #ifndef _WIN32
if (g_use_sandbox) if (g_use_sandbox)
umask (2); // Set file creation mask to be writable by both user and group umask (2); // Set file creation mask to be writable by both user and group
// Our umask will be inherited by all our child processes // Our umask will be inherited by all our child processes
#endif #endif
#else
g_use_sandbox = false;
#endif
// Setup variables with default values // Setup variables with default values
m_bBOINCStartedByManager = false; m_bBOINCStartedByManager = false;