From e28da90e000286c71935971b93a9c52cbfa15b9b Mon Sep 17 00:00:00 2001 From: h7x4 Date: Tue, 23 Dec 2025 11:20:05 +0900 Subject: [PATCH] client: remove `--config` flag when not compile with suid/sgid support --- src/entrypoints/muscl.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/entrypoints/muscl.rs b/src/entrypoints/muscl.rs index f716015..3d1471b 100644 --- a/src/entrypoints/muscl.rs +++ b/src/entrypoints/muscl.rs @@ -121,10 +121,10 @@ struct Args { )] server_socket_path: Option, - // TODO: conditionally include this only when compiling with SUID/SGID support /// Config file to use for the server. /// /// This is only useful when running in SUID/SGID mode. + #[cfg(feature = "suid-sgid-mode")] #[arg( long = "config", value_name = "PATH", @@ -293,7 +293,10 @@ fn main() -> anyhow::Result<()> { let connection = bootstrap_server_connection_and_drop_privileges( args.server_socket_path, + #[cfg(feature = "suid-sgid-mode")] args.config_path, + #[cfg(not(feature = "suid-sgid-mode"))] + None, args.verbose, )?;