From 3556eb37ea9b3a0524893dfb51d8156021925b63 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 19 Aug 2024 17:46:08 +0200 Subject: [PATCH] Dont drop privs as server --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index a539de3..d0ac70b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,7 +13,7 @@ use futures::StreamExt; use crate::{ core::{ - bootstrap::{bootstrap_server_connection_and_drop_privileges, drop_privs}, + bootstrap::bootstrap_server_connection_and_drop_privileges, protocol::{create_client_to_server_message_stream, Response}, }, server::command::ServerArgs, @@ -148,7 +148,6 @@ fn handle_mysql_admutils_command() -> anyhow::Result> { fn handle_server_command(args: &Args) -> anyhow::Result> { match args.command { Command::Server(ref command) => { - drop_privs()?; tokio_start_server( args.server_socket_path.clone(), args.config.clone(),