Browse Source

Fix #1531

pull/1537/head
Max Lv 7 years ago
parent
commit
babc9c4775
1 changed files with 0 additions and 5 deletions
  1. 5
      src/manager.c

5
src/manager.c

@ -1213,11 +1213,6 @@ main(int argc, char **argv)
// initialize ev loop // initialize ev loop
struct ev_loop *loop = EV_DEFAULT; struct ev_loop *loop = EV_DEFAULT;
// setuid
if (user != NULL && !run_as(user)) {
FATAL("failed to switch user");
}
if (geteuid() == 0) { if (geteuid() == 0) {
LOGI("running from root user"); LOGI("running from root user");
} }

Loading…
Cancel
Save