fix: scope fstab fallback mode to non-unix builds

This commit is contained in:
2026-08-28 20:07:17 +05:00
parent ff22a9ffea
commit 7390d1fa2c
+2 -2
View File
@@ -21,8 +21,8 @@ use std::{
use crate::atomic; use crate::atomic;
pub const FSTAB_PATH: &str = "/etc/fstab"; 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 /// Fallback for non-Unix test builds, where Unix permission bits are unavailable.
/// to fail for other reasons anyway. #[cfg(not(unix))]
const FSTAB_FALLBACK_MODE: u32 = 0o644; const FSTAB_FALLBACK_MODE: u32 = 0o644;
#[cfg(unix)] #[cfg(unix)]