mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=10805
This commit is contained in:
parent
fdc99b8984
commit
dfc2cdb4b6
|
@ -8240,3 +8240,15 @@ Charlie 1 Aug 2006
|
|||
Mac_SA_Secure.sh
|
||||
mac_installer/
|
||||
PostInstall.cpp
|
||||
|
||||
Rom 1 Aug 2006
|
||||
- Fix build breaks on Windows
|
||||
|
||||
client/
|
||||
file_names.C
|
||||
main.C
|
||||
clientgui/
|
||||
BOINCGUIApp.C
|
||||
lib/
|
||||
boinc_cmd.C
|
||||
util.C
|
||||
|
|
|
@ -95,6 +95,7 @@ int make_project_dir(PROJECT& p) {
|
|||
int retval;
|
||||
|
||||
boinc_mkdir(PROJECTS_DIR);
|
||||
#ifndef _WIN32
|
||||
if (g_use_sandbox) {
|
||||
chmod(PROJECTS_DIR,
|
||||
S_IRUSR|S_IWUSR|S_IXUSR
|
||||
|
@ -102,8 +103,10 @@ int make_project_dir(PROJECT& p) {
|
|||
|S_IROTH|S_IXOTH
|
||||
);
|
||||
}
|
||||
#endif
|
||||
get_project_dir(&p, buf);
|
||||
retval = boinc_mkdir(buf);
|
||||
#ifndef _WIN32
|
||||
if (g_use_sandbox) {
|
||||
chmod(buf,
|
||||
S_IRUSR|S_IWUSR|S_IXUSR
|
||||
|
@ -112,6 +115,7 @@ int make_project_dir(PROJECT& p) {
|
|||
);
|
||||
set_to_project_group(buf);
|
||||
}
|
||||
#endif
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
@ -137,6 +141,7 @@ int make_slot_dir(int slot) {
|
|||
return ERR_NEG;
|
||||
}
|
||||
boinc_mkdir(SLOTS_DIR);
|
||||
#ifndef _WIN32
|
||||
if (g_use_sandbox) {
|
||||
chmod(SLOTS_DIR,
|
||||
S_IRUSR|S_IWUSR|S_IXUSR
|
||||
|
@ -144,8 +149,10 @@ int make_slot_dir(int slot) {
|
|||
|S_IROTH|S_IXOTH
|
||||
);
|
||||
}
|
||||
#endif
|
||||
get_slot_dir(slot, buf);
|
||||
int retval = boinc_mkdir(buf);
|
||||
#ifndef _WIN32
|
||||
if (g_use_sandbox) {
|
||||
chmod(buf,
|
||||
S_IRUSR|S_IWUSR|S_IXUSR
|
||||
|
@ -154,6 +161,7 @@ int make_slot_dir(int slot) {
|
|||
);
|
||||
set_to_project_group(buf);
|
||||
}
|
||||
#endif
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
|
@ -78,12 +78,6 @@ typedef void (CALLBACK* ClientLibraryShutdown)();
|
|||
|
||||
int finalize();
|
||||
|
||||
// Ideally, we would access this using wxGetApp().m_use_sandbox in the Manager
|
||||
// and gstate.m_use_sandbox in the Client, but it is used by some source files
|
||||
// (filesys.C, check_security.C) that are linked with both Manager and Client
|
||||
// so the most practical solution is to use a global.
|
||||
int g_use_sandbox;
|
||||
|
||||
static bool boinc_cleanup_completed = false;
|
||||
// Used on Windows 95/98/ME to determine when it is safe to leave
|
||||
// the WM_ENDSESSION message handler and allow Windows to finish
|
||||
|
|
|
@ -36,6 +36,8 @@
|
|||
#include "Events.h"
|
||||
#include "BOINCGUIApp.h"
|
||||
#include "AdvancedFrame.h"
|
||||
#include "util.h"
|
||||
|
||||
|
||||
#ifdef SIMPLEGUI
|
||||
#include "common/wxAnimate.h"
|
||||
|
@ -87,13 +89,6 @@ EXTERN_C DWORD BOINCGetIdleTickCount();
|
|||
IMPLEMENT_APP(CBOINCGUIApp)
|
||||
IMPLEMENT_DYNAMIC_CLASS(CBOINCGUIApp, wxApp)
|
||||
|
||||
// Ideally, we would access this using wxGetApp().m_use_sandbox in the Manager
|
||||
// and gstate.m_use_sandbox in the Client, but it is used by some source files
|
||||
// (filesys.C, check_security.C) that are linked with both Manager and Client
|
||||
// so the most practical solution is to use a global.
|
||||
int g_use_sandbox;
|
||||
|
||||
|
||||
|
||||
bool CBrandingScheme::OnInit( wxConfigBase *pConfig ) {
|
||||
wxString strBaseConfigLocation = wxEmptyString;
|
||||
|
|
|
@ -43,8 +43,6 @@ using std::string;
|
|||
#include "util.h"
|
||||
#include "version.h"
|
||||
|
||||
int g_use_sandbox = 0;
|
||||
|
||||
|
||||
void usage() {
|
||||
fprintf(stderr, "\
|
||||
|
@ -148,6 +146,8 @@ int main(int argc, char** argv) {
|
|||
char passwd_buf[256], hostname_buf[256], *hostname=0;
|
||||
char* passwd = passwd_buf, *p;
|
||||
|
||||
g_use_sandbox = false;
|
||||
|
||||
strcpy(passwd_buf, "");
|
||||
read_password_from_file(passwd_buf);
|
||||
|
||||
|
|
|
@ -63,6 +63,14 @@
|
|||
using std::min;
|
||||
using std::string;
|
||||
|
||||
|
||||
// Ideally, we would access this using wxGetApp().m_use_sandbox in the Manager
|
||||
// and gstate.m_use_sandbox in the Client, but it is used by some source files
|
||||
// (filesys.C, check_security.C) that are linked with both Manager and Client
|
||||
// so the most practical solution is to use a global.
|
||||
int g_use_sandbox;
|
||||
|
||||
|
||||
// Use this instead of strncpy().
|
||||
// Result will always be null-terminated, and it's faster.
|
||||
// see http://www.gratisoft.us/todd/papers/strlcpy.html
|
||||
|
|
Loading…
Reference in New Issue