From babc9c4775e189bfab218eceb6a15e169d5fda67 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Sun, 18 Jun 2017 16:02:57 +0800 Subject: [PATCH] Fix #1531 --- src/manager.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/manager.c b/src/manager.c index a926dc7f..6e7197cc 100644 --- a/src/manager.c +++ b/src/manager.c @@ -1213,11 +1213,6 @@ main(int argc, char **argv) // initialize ev loop struct ev_loop *loop = EV_DEFAULT; - // setuid - if (user != NULL && !run_as(user)) { - FATAL("failed to switch user"); - } - if (geteuid() == 0) { LOGI("running from root user"); }