hurd: Fix lsetxattr return value

The manpage says that lsetxattr returns 0 on success, like setxattr.
This commit is contained in:
Samuel Thibault 2024-06-10 21:56:13 +02:00
parent eb37015879
commit 74f9ee3b91

View File

@ -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);
}