From 89f56ef7b0e8655ea4136a127a064cf96efbd958 Mon Sep 17 00:00:00 2001 From: ph0llux Date: Tue, 28 Nov 2023 21:05:02 +0100 Subject: [PATCH] fixed metadata attribute keys missing in macos workflow --- src/lib/constants.rs | 10 +++++----- src/lib/io/zffreader/mod.rs | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/constants.rs b/src/lib/constants.rs index 66e17c3..86459ca 100644 --- a/src/lib/constants.rs +++ b/src/lib/constants.rs @@ -171,15 +171,15 @@ pub const DEFAULT_CHUNKMAP_SIZE: u64 = 32768; // file metadata extended values -#[cfg(target_os = "linux")] +#[cfg(target_family = "unix")] pub(crate) const METADATA_EXT_KEY_DEVID: &str = "devid"; -#[cfg(target_os = "linux")] +#[cfg(target_family = "unix")] pub(crate) const METADATA_EXT_KEY_INODE: &str = "inode"; -#[cfg(target_os = "linux")] +#[cfg(target_family = "unix")] pub(crate) const METADATA_EXT_KEY_MODE: &str = "mode"; -#[cfg(target_os = "linux")] +#[cfg(target_family = "unix")] pub(crate) const METADATA_EXT_KEY_UID: &str = "uid"; -#[cfg(target_os = "linux")] +#[cfg(target_family = "unix")] pub(crate) const METADATA_EXT_KEY_GID: &str = "gid"; #[cfg(target_os = "windows")] pub(crate) const METADATA_EXT_DW_FILE_ATTRIBUTES: &str = "dwFileAttributes"; diff --git a/src/lib/io/zffreader/mod.rs b/src/lib/io/zffreader/mod.rs index 39acca9..329dfe4 100644 --- a/src/lib/io/zffreader/mod.rs +++ b/src/lib/io/zffreader/mod.rs @@ -566,15 +566,15 @@ fn extract_recommended_metadata(fileheader: &FileHeader) -> HashMap