mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 17:13:47 +02:00
2021-06-02 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compile warnings in rdselect_helper(1). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -33,7 +33,9 @@
|
||||
MainObject::MainObject(QObject *parent)
|
||||
: QObject(parent)
|
||||
{
|
||||
setuid(geteuid()); // So the SETUID bit works as expected
|
||||
if(setuid(geteuid())!=0) { // So the SETUID bit works as expected
|
||||
fprintf(stderr,"rdselect_helper: setuid error [%s]\n",strerror(errno));
|
||||
}
|
||||
if(getuid()!=0) {
|
||||
fprintf(stderr,
|
||||
"rdselect_helper: this program must be installed SETUID root\n");
|
||||
|
Reference in New Issue
Block a user