From 3e65289b8599c02b0ce3efd8bd055fbb0d06dfcb Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 14 Jan 2025 11:09:24 +0100 Subject: [PATCH] windows: fix allow-world-readable-secrets config compile error --- src/garage/secrets.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/garage/secrets.rs b/src/garage/secrets.rs index 8d2ff475..698799be 100644 --- a/src/garage/secrets.rs +++ b/src/garage/secrets.rs @@ -52,10 +52,14 @@ pub struct Secrets { /// from config or CLI param or env variable or read from a file specified in config or CLI /// param or env variable) pub fn fill_secrets(mut config: Config, secrets: Secrets) -> Result { + #[cfg(unix)] let allow_world_readable = secrets .allow_world_readable_secrets .unwrap_or(config.allow_world_readable_secrets); + #[cfg(not(unix))] + let allow_world_readable = config.allow_world_readable_secrets; + fill_secret( &mut config.rpc_secret, &config.rpc_secret_file,