Subject: | XATTR_CREATE and XATTR_REPLACE wrong for Mac |
Fuse.pm hardcodes XATTR_CREATE and XATTR_REPLACE to the Linux values,
but they have different values on Mac. The following is quoted from
/usr/include/sys/xattr.h:
/* Options for pathname based xattr calls */
#define XATTR_NOFOLLOW 0x0001 /* Don't follow symbolic links */
/* Options for setxattr calls */
#define XATTR_CREATE 0x0002 /* set the value, fail if attr
already exists */
#define XATTR_REPLACE 0x0004 /* set the value, fail if attr does
not exist */
/* Set this to bypass authorization checking (eg. if doing auth-related
work) */
#define XATTR_NOSECURITY 0x0008
#define XATTR_MAXNAMELEN 127