]> arthur.barton.de Git - netdata.git/commitdiff
undo last commit - it does not work either
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 29 Jan 2017 20:34:59 +0000 (22:34 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 29 Jan 2017 20:34:59 +0000 (22:34 +0200)
src/apps_plugin.c

index b42cf8568146fea44f8c2bf22f6e9dcb72949907..67921fb9e9747d4a12523b0450338a7d30da0064 100644 (file)
@@ -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;
 }