hurd: Fix xattr error value

This does not seem like it is supposed to return negative error codes.

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230212111044.610942-5-bugaevc@gmail.com>
This commit is contained in:
Sergey Bugaev 2023-02-12 14:10:35 +03:00 committed by Samuel Thibault
parent 62d6c33030
commit 48941024ba

View File

@ -68,7 +68,7 @@ _hurd_xattr_get (io_t port, const char *name, void *value, size_t *size)
{
if (buf != value)
__munmap (buf, bufsz);
return -ERANGE;
return ERANGE;
}
if (buf != value && bufsz > 0)
{