From fdc99b898484b41fb6658cc0892d20af3d057de3 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Tue, 1 Aug 2006 13:13:49 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=10804 --- clientgui/BOINCGUIApp.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/clientgui/BOINCGUIApp.cpp b/clientgui/BOINCGUIApp.cpp index fb163d36f2..59849d5b6d 100644 --- a/clientgui/BOINCGUIApp.cpp +++ b/clientgui/BOINCGUIApp.cpp @@ -269,18 +269,22 @@ bool CBOINCGUIApp::OnInit() { #ifdef SANDBOX g_use_sandbox = true; +#else + g_use_sandbox = false; +#endif + +#ifdef SANDBOX // Commandline parsing is done in wxApp::OnInit() if (!wxApp::OnInit()) { // Command line arg -insecure sets g_use_sandbox to false return false; } +#endif + #ifndef _WIN32 if (g_use_sandbox) umask (2); // Set file creation mask to be writable by both user and group // Our umask will be inherited by all our child processes #endif -#else - g_use_sandbox = false; -#endif // Setup variables with default values m_bBOINCStartedByManager = false;