Dont drop privs as server

This commit is contained in:
Oystein Kristoffer Tveit 2024-08-19 17:46:08 +02:00
parent 20669569f3
commit 3556eb37ea
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146

View File

@ -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<Option<()>> {
fn handle_server_command(args: &Args) -> anyhow::Result<Option<()>> {
match args.command {
Command::Server(ref command) => {
drop_privs()?;
tokio_start_server(
args.server_socket_path.clone(),
args.config.clone(),