mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-07-12 14:47:44 +02:00
2016-07-27 Fred Gleason <fredg@paravelsystems.com>
* Added a check for 'root' permissions at startup in 'utils/rdrevert/rdrevert.cpp'.
This commit is contained in:
parent
2de10e7549
commit
e93b79f11b
@ -15429,3 +15429,6 @@
|
|||||||
for data lines with leading whitespace.
|
for data lines with leading whitespace.
|
||||||
2016-07-27 Fred Gleason <fredg@paravelsystems.com>
|
2016-07-27 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Incremented the package version to 2.14.1int02.
|
* Incremented the package version to 2.14.1int02.
|
||||||
|
2016-07-27 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Added a check for 'root' permissions at startup in
|
||||||
|
'utils/rdrevert/rdrevert.cpp'.
|
||||||
|
@ -20,6 +20,8 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
@ -43,6 +45,14 @@ MainObject::MainObject(QObject *parent)
|
|||||||
int set_schema=0;
|
int set_schema=0;
|
||||||
rev_use_deadzone=false;
|
rev_use_deadzone=false;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Check for Root Permissions
|
||||||
|
//
|
||||||
|
if(geteuid()!=0) {
|
||||||
|
fprintf(stderr,"rdrevert: this program requires root permissions\n");
|
||||||
|
exit(256);
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Read Command Options
|
// Read Command Options
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user