Ticket #1058: unix-no-root-2012-01-09.patch

File unix-no-root-2012-01-09.patch, 1.6 KB (added by leper, 13 years ago)

refuse to run as root if not started with --really-run-as-root

  • 0ad/source/main.cpp

     
    7373#include "scripting/ScriptingHost.h"
    7474#include "simulation2/Simulation2.h"
    7575
     76
     77
     78
     79
    7680extern bool g_GameRestarted;
    7781
    7882void kill_mainloop();
     
    433437{
    434438    CmdLineArgs args(argc, argv);
    435439
     440
     441
     442
     443
     444
     445
     446
     447
     448
     449
     450
     451
     452
     453
     454
     455
     456
     457
     458
    436459    // We need to initialise libxml2 in the main thread before
    437460    // any thread uses it. So initialise it here before we
    438461    // might run Atlas.