summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
authorDaniel Morante <daniel@morante.net>2020-08-09 21:38:52 -0400
committerAmar Tumballi <amar@kadalu.io>2020-08-19 04:24:50 +0000
commit4fef4b2e848513b39f53c996689ae7600921ede1 (patch)
treeba982d6f739d2c170bee39f86de6327397b6e3e0 /libglusterfs
parentb40198b6ae26b60fa7e4e9151acf7b3527d311ce (diff)
BSD: extattr_set_link and extattr_set_fd return bytes written not 0
Change-Id: I120006dab4e199ad3d3f4a5ebc9c352f3c49ea7d Fixes: #1376
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/syscall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libglusterfs/src/syscall.c b/libglusterfs/src/syscall.c
index 007e3e84eea..03e5924a1c3 100644
--- a/libglusterfs/src/syscall.c
+++ b/libglusterfs/src/syscall.c
@@ -506,7 +506,7 @@ sys_lsetxattr(const char *path, const char *name, const void *value,
#endif
#ifdef GF_BSD_HOST_OS
- return FS_RET_CHECK0(
+ return FS_RET_CHECK(
extattr_set_link(path, EXTATTR_NAMESPACE_USER, name, value, size),
errno);
#endif
@@ -624,7 +624,7 @@ sys_fsetxattr(int filedes, const char *name, const void *value, size_t size,
#endif
#ifdef GF_BSD_HOST_OS
- return FS_RET_CHECK0(
+ return FS_RET_CHECK(
extattr_set_fd(filedes, EXTATTR_NAMESPACE_USER, name, value, size),
errno);
#endif