From: Costa Tsaousis (ktsaou) Date: Sun, 29 Jan 2017 20:34:59 +0000 (+0200) Subject: undo last commit - it does not work either X-Git-Tag: ab-debian_0.20170201.01-0ab1~9^2 X-Git-Url: https://arthur.barton.de/gitweb/?p=netdata.git;a=commitdiff_plain;h=91c1bc20b8f7b3e10745b9daf3b2ca8eb43ab3f5 undo last commit - it does not work either --- 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; }