fix: scope fstab fallback mode to non-unix builds
This commit is contained in:
@@ -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)]
|
||||||
|
|||||||
Reference in New Issue
Block a user