From 42bd28fe365dbeee6c0032d7051634c9441f5a8b Mon Sep 17 00:00:00 2001 From: h7x4 Date: Tue, 23 Dec 2025 12:14:23 +0900 Subject: [PATCH] client: fix compile-time conditional imports --- 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 54b7023..35e9eb8 100644 --- a/src/entrypoints/muscl.rs +++ b/src/entrypoints/muscl.rs @@ -26,6 +26,9 @@ use muscl_lib::{ }, }; +#[cfg(feature = "suid-sgid-mode")] +use muscl_lib::core::common::executing_in_suid_sgid_mode; + const fn long_version() -> &'static str { macro_rules! feature { ($title:expr, $flag:expr) => { @@ -314,7 +317,7 @@ fn handle_dynamic_completion() -> anyhow::Result> { if std::env::var_os("COMPLETE").is_some() { #[cfg(feature = "suid-sgid-mode")] if executing_in_suid_sgid_mode()? { - use crate::core::bootstrap::drop_privs; + use muscl_lib::core::bootstrap::drop_privs; drop_privs()? }