Skip to content

Commit 25fe57f

Browse files
committed
Removed stray xattr flag
Clients should get the xattrs they actually asked for, after all.
1 parent 3b2fa95 commit 25fe57f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/fs_xattr.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ ssize_t
4848
_flistxattr(int fd, char* namebuf, size_t size)
4949
{
5050
#if __APPLE__
51-
return ::flistxattr(fd, namebuf, size, XATTR_SHOWCOMPRESSION);
51+
return ::flistxattr(fd, namebuf, size, 0);
5252
#else
5353
return ::flistxattr(fd, namebuf, size);
5454
#endif
@@ -58,7 +58,7 @@ ssize_t
5858
_llistxattr(const char* path, char* namebuf, size_t size)
5959
{
6060
#if __APPLE__
61-
return ::listxattr(path, namebuf, size, XATTR_SHOWCOMPRESSION & XATTR_NOFOLLOW);
61+
return ::listxattr(path, namebuf, size, XATTR_NOFOLLOW);
6262
#else
6363
return ::llistxattr(path, namebuf, size);
6464
#endif
@@ -68,7 +68,7 @@ ssize_t
6868
_fgetxattr(int fd, const char* name, char* value, size_t size, u_int32_t position)
6969
{
7070
#if __APPLE__
71-
return ::fgetxattr(fd, name, value, size, position, XATTR_SHOWCOMPRESSION);
71+
return ::fgetxattr(fd, name, value, size, position, 0);
7272
#else
7373
return ::fgetxattr(fd, name, value, size);
7474
#endif
@@ -78,7 +78,7 @@ ssize_t
7878
_lgetxattr(const char* path, const char* name, char* value, size_t size, u_int32_t position)
7979
{
8080
#if __APPLE__
81-
return ::getxattr(path, name, value, size, position, XATTR_SHOWCOMPRESSION & XATTR_NOFOLLOW);
81+
return ::getxattr(path, name, value, size, position, XATTR_NOFOLLOW);
8282
#else
8383
return ::lgetxattr(path, name, value, size);
8484
#endif

0 commit comments

Comments
 (0)