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:
Fred Gleason 2021-06-02 17:28:05 -04:00
parent a82067f7ae
commit f0a7dc0d5d
2 changed files with 5 additions and 1 deletions

View File

@ -21852,3 +21852,5 @@
* Cleaned up compile warnings in rddbmgr(8).
2021-06-02 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compile warnings in rdrender(1).
2021-06-02 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compile warnings in rdselect_helper(1).

View File

@ -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");