From 7390d1fa2c0710cb189897728e1bc1bfed9fbc53 Mon Sep 17 00:00:00 2001 From: Crimson Date: Fri, 28 Aug 2026 20:07:17 +0500 Subject: [PATCH] fix: scope fstab fallback mode to non-unix builds --- traffic_core/src/fstab.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/traffic_core/src/fstab.rs b/traffic_core/src/fstab.rs index dc31a00..99cc3fd 100644 --- a/traffic_core/src/fstab.rs +++ b/traffic_core/src/fstab.rs @@ -21,8 +21,8 @@ use std::{ use crate::atomic; pub const FSTAB_PATH: &str = "/etc/fstab"; -/// Used only when the live file's mode cannot be read, which on Linux means it is about -/// to fail for other reasons anyway. +/// Fallback for non-Unix test builds, where Unix permission bits are unavailable. +#[cfg(not(unix))] const FSTAB_FALLBACK_MODE: u32 = 0o644; #[cfg(unix)]