We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4d4857 commit 2f867faCopy full SHA for 2f867fa
cli/src/util/zipper.rs
@@ -88,7 +88,13 @@ where
88
use std::io::Read;
89
use std::os::unix::ffi::OsStringExt;
90
91
- if matches!(file.unix_mode(), Some(mode) if mode & S_IFLNK == S_IFLNK) {
+ #[cfg(target_os = "macos")]
92
+ const S_IFLINK_32: u32 = S_IFLNK as u32;
93
+
94
+ #[cfg(target_os = "linux")]
95
+ const S_IFLINK_32: u32 = S_IFLNK;
96
97
+ if matches!(file.unix_mode(), Some(mode) if mode & S_IFLINK_32 == S_IFLINK_32) {
98
let mut link_to = Vec::new();
99
file.read_to_end(&mut link_to).map_err(|e| {
100
wrap(
0 commit comments