aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2024-06-10 21:56:13 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-06-10 21:56:13 +0200
commit74f9ee3b91931967df5601ad63a4b02f5cd75b43 (patch)
treef971b3964da59f3620439a0b12f2c76a6e9ab0f0
parenteb370158794d7c64740a257ab2246ab46b90306a (diff)
downloadglibc-74f9ee3b91931967df5601ad63a4b02f5cd75b43.zip
glibc-74f9ee3b91931967df5601ad63a4b02f5cd75b43.tar.gz
glibc-74f9ee3b91931967df5601ad63a4b02f5cd75b43.tar.bz2
hurd: Fix lsetxattr return value
The manpage says that lsetxattr returns 0 on success, like setxattr.
-rw-r--r--sysdeps/mach/hurd/lsetxattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/lsetxattr.c b/sysdeps/mach/hurd/lsetxattr.c
index 3f5d335..49487f7 100644
--- a/sysdeps/mach/hurd/lsetxattr.c
+++ b/sysdeps/mach/hurd/lsetxattr.c
@@ -32,5 +32,5 @@ lsetxattr (const char *path, const char *name, const void *value, size_t size,
return -1;
err = _hurd_xattr_set (port, name, value, size, flags);
__mach_port_deallocate (__mach_task_self (), port);
- return err ? __hurd_fail (err) : size;
+ return __hurd_fail (err);
}