diff --git a/src/fs/xattr.rs b/src/fs/xattr.rs index d1cbb17c..d6ae4eff 100644 --- a/src/fs/xattr.rs +++ b/src/fs/xattr.rs @@ -30,7 +30,7 @@ unsafe fn has_xattrs(path: &Path) -> bool { slice_ptr.cast::() }; - #[cfg(target_os = "linux")] + #[cfg(not(target_os = "macos"))] return 0 < listxattr(path_ptr, ptr::null_mut::(), 0); #[cfg(target_os = "macos")]