Sun, 25 Jun 2023 11:25:59 +0200
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) {