From 91c1bc20b8f7b3e10745b9daf3b2ca8eb43ab3f5 Mon Sep 17 00:00:00 2001 From: "Costa Tsaousis (ktsaou)" Date: Sun, 29 Jan 2017 22:34:59 +0200 Subject: [PATCH] undo last commit - it does not work either --- src/apps_plugin.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/apps_plugin.c b/src/apps_plugin.c index b42cf856..67921fb9 100644 --- a/src/apps_plugin.c +++ b/src/apps_plugin.c @@ -3020,12 +3020,6 @@ static int am_i_running_as_root() { return 1; } - if(seteuid(0) == 0) { - euid = geteuid(); - if(debug) info("I am running with escalated privileges, uid = %u, euid = %u.", uid, euid); - return 1; - } - if(debug) info("I am not running with escalated privileges, uid = %u, euid = %u.", uid, euid); return 0; } -- 2.39.2