From e29f695f32b86918277dcc226d613e85cb5b838e Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 19 Mar 2020 02:44:16 +0100 Subject: Add macOS workaround for lsetxattr Signed-off-by: David Oberhollenzer --- unpack/rdsquashfs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/unpack/rdsquashfs.h b/unpack/rdsquashfs.h index dc9d68c..17c0a85 100644 --- a/unpack/rdsquashfs.h +++ b/unpack/rdsquashfs.h @@ -17,6 +17,11 @@ #endif #ifdef HAVE_SYS_XATTR_H #include + +#if defined(__APPLE__) && defined(__MACH__) +#define lsetxattr(path, name, value, size, flags) \ + setxattr(path, name, value, size, 0, flags | XATTR_NOFOLLOW) +#endif #endif #include #include -- cgit v1.2.3