diff --git a/ChangeLog b/ChangeLog index 67ea78d1..25123600 100644 --- a/ChangeLog +++ b/ChangeLog @@ -21852,3 +21852,5 @@ * Cleaned up compile warnings in rddbmgr(8). 2021-06-02 Fred Gleason * Cleaned up compile warnings in rdrender(1). +2021-06-02 Fred Gleason + * Cleaned up compile warnings in rdselect_helper(1). diff --git a/utils/rdselect_helper/rdselect_helper.cpp b/utils/rdselect_helper/rdselect_helper.cpp index 14ba54e7..86c851ca 100644 --- a/utils/rdselect_helper/rdselect_helper.cpp +++ b/utils/rdselect_helper/rdselect_helper.cpp @@ -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");