Changeset 71c6ff1


Ignore:
Timestamp:
12/03/13 11:06:33 (17 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1, releng/10.1.2
Children:
4e3271f
Parents:
d29f2cb2
Message:

Only run pc-zmanager as root

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-zmanager/main.cpp

    r125dbc9 r71c6ff1  
    1111#endif 
    1212 
    13  
    14  
    15  
    16  
    17  
    1813int main(int argc, char *argv[]) 
    1914{ 
     15    // Make sure we are running as root 
     16    if (getuid() != 0) { 
     17      qDebug("Error, needs to be run as root"); 
     18      exit(1); 
     19    } 
     20 
    2021    QtSingleApplication a(argc, argv); 
    2122    if ( a.isRunning() ) 
Note: See TracChangeset for help on using the changeset viewer.