From 6929b2340717dcc2a33ca07e75ec79762a266b6d Mon Sep 17 00:00:00 2001 From: adamlin Date: Mon, 20 Mar 2017 18:19:25 +0800 Subject: [PATCH] Fix nofollow not work in MAC --- xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xattr.c b/xattr.c index e296245..0087b7e 100644 --- a/xattr.c +++ b/xattr.c @@ -233,7 +233,7 @@ static inline int _setxattr(const char *path, const char *name, const void *valu return setxattr(path, name, value, size, 0, flags); } static inline int _lsetxattr(const char *path, const char *name, const void *value, size_t size, int flags) { - return setxattr(path, name, value, size, 0, flags & XATTR_NOFOLLOW); + return setxattr(path, name, value, size, 0, flags | XATTR_NOFOLLOW); } static inline int _fsetxattr(int filedes, const char *name, const void *value, size_t size, int flags) { return fsetxattr(filedes, name, value, size, 0, flags); -- 2.39.5