Ticket #762: linuxmgr-clientstart.3.diff

File linuxmgr-clientstart.3.diff, 2.4 KB (added by Nicolas, 16 years ago)

patch

  • client/cs_cmdline.cpp

     
    5555        "    --file_xfer_giveup_period N    give up on file xfers after N sec\n"
    5656        "    --gui_rpc_port <port>          port for GUI RPCs\n"
    5757        "    --help                         show options\n"
     58#ifdef SANDBOX
    5859        "    --insecure                     disable app sandboxing (Unix)\n"
     60#endif
    5961        "    --launched_by_manager          client was launched by Manager\n"
    6062        "    --master_fetch_period N        reload master URL after N RPC failures\n"
    6163        "    --master_fetch_retry_cap N     exponential backoff limit\n"
     
    6870        "    --redirectio                   redirect stdout and stderr to log files\n"
    6971        "    --retry_cap N                  exponential backoff limit\n"
    7072        "    --run_cpu_benchmarks           run the CPU benchmarks\n"
    71 #ifdef SANDBOX
    72 #endif
    7373        "    --run_by_updater               set by updater\n"
    7474        "    --saver                        client was launched by screensaver\n"
    7575        "    --sched_retry_delay_min N      min for RPC exponential backoff\n"
     
    205205            }
    206206        } else if (ARG(no_gui_rpc)) {
    207207            no_gui_rpc = true;
     208        } else if (ARG(insecure)) {
     209            //do nothing if sandbox is disabled, but always recognize the
     210            //option to avoid errors
    208211#ifdef SANDBOX
    209         } else if (ARG(insecure)) {
    210212            g_use_sandbox = false;
    211213#endif
    212214        } else if (ARG(launched_by_manager)) {
  • clientgui/BOINCClientManager.cpp

     
    262262
    263263    // Append boinc.exe to the end of the strExecute string and get ready to rock
    264264    strExecute = ::wxGetCwd() + wxT("/boinc --redirectio --launched_by_manager");
     265#ifdef SANDBOX
    265266    if (!g_use_sandbox) {
    266267        strExecute += wxT(" --insecure");
    267268    }
     269#endif
    268270
    269271    wxLogTrace(wxT("Function Status"), wxT("CMainDocument::StartupBOINCCore - szExecute '%s'\n"), strExecute.c_str());
    270272    wxLogTrace(wxT("Function Status"), wxT("CMainDocument::StartupBOINCCore - szDataDirectory '%s'\n"), ::wxGetCwd().c_str());