fix xattr_set on FreeBSD

Sun, 25 Jun 2023 11:25:59 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 25 Jun 2023 11:25:59 +0200
changeset 764
a41b18c67d95
parent 763
fc24d1d1d695
child 765
305ce525ad4a

fix xattr_set on FreeBSD

dav/libxattr.c file | annotate | diff | comparison | revisions
--- a/dav/libxattr.c	Wed Jun 14 22:55:29 2023 +0200
+++ b/dav/libxattr.c	Sun Jun 25 11:25:59 2023 +0200
@@ -460,7 +460,7 @@
 
 int xattr_set(const char *path, const char *name, const void *value, size_t len) {
     int ret = extattr_set_file(path, EXTATTR_NAMESPACE_USER, name, value, len);
-    return ret;
+    return ret >= 0 ? 0 : ret;
 }
 
 int xattr_remove(const char *path, const char *name) {

mercurial