aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index ea26db3..0f09095 100644
--- a/src/main.c
+++ b/src/main.c
@@ -92,8 +92,9 @@ int main(int argc, char *argv[])
D2("Server epoll fd: %d", epoll_fd);
ABORT_ON_FATAL( epoll_fd < 0, "Server epoll setup" );
- ABORT_ON_FATAL( setgid(65534), "Change group" );
- ABORT_ON_FATAL( setuid(65534), "Change user" );
+ D2("Server dropping privileges to %s:%s", "nobody", "NULL");
+ ABORT_ON_FATAL( change_user_group("nobody", NULL),
+ "Server dropping privileges" );
N("%s", "Server epoll mainloop");
ABORT_ON_FATAL( server_mainloop_epoll( epoll_fd, srv, srv_siz ),