undo last commit - it does not work either
Costa Tsaousis (ktsaou) committed
Jan 29, 2017 at 22:34 UTC
91c1bc20b8f7b3e10745b9daf3b2ca8eb43ab3f5
1 file changed
-6
src/apps_plugin.c
-6
@@ -3020,12 +3020,6 @@ static int am_i_running_as_root() {
3020
return 1;
3021
}
3022
3023
- if(seteuid(0) == 0) {
3024
- euid = geteuid();
3025
- if(debug) info("I am running with escalated privileges, uid = %u, euid = %u.", uid, euid);
3026
- return 1;
3027
- }
3028
-
3023
if(debug) info("I am not running with escalated privileges, uid = %u, euid = %u.", uid, euid);
3024
return 0;
3025
}