diff options
author | Robert Clausecker <fuz@FreeBSD.org> | 2024-09-27 10:48:46 +0000 |
---|---|---|
committer | Robert Clausecker <fuz@FreeBSD.org> | 2024-11-06 15:17:35 +0000 |
commit | 6e2da9672f79f44048d597f0f61e4646cdeade9d (patch) | |
tree | c92e4b3158e3419e8cec38e00227d08dcdaab3e9 /filesystems/sandboxfs/files/patch-src_lib.rs | |
parent | 432f2ebe088377708fb08514ea86f2c19a5b0ad5 (diff) |
Diffstat (limited to 'filesystems/sandboxfs/files/patch-src_lib.rs')
-rw-r--r-- | filesystems/sandboxfs/files/patch-src_lib.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/filesystems/sandboxfs/files/patch-src_lib.rs b/filesystems/sandboxfs/files/patch-src_lib.rs new file mode 100644 index 000000000000..ffee85062382 --- /dev/null +++ b/filesystems/sandboxfs/files/patch-src_lib.rs @@ -0,0 +1,15 @@ +--- src/lib.rs.orig 2020-04-20 18:46:46 UTC ++++ src/lib.rs +@@ -463,10 +463,10 @@ impl SandboxFS { + #[cfg(target_os = "linux")] + let code = Errno::ENODATA; + +- #[cfg(target_os = "macos")] ++ #[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "macos"))] + let code = Errno::ENOATTR; + +- #[cfg(not(any(target_os = "linux", target_os = "macos")))] ++ #[cfg(not(any(target_os = "dragonfly", target_os = "freebsd", target_os = "linux", target_os = "macos")))] + compile_error!("Don't know what error to return on a missing getxattr"); + + Err(KernelError::from_errno(code)) |