From: Sergey Bugaev Date: Sun, 12 Feb 2023 11:10:35 +0000 (+0300) Subject: hurd: Fix xattr error value X-Git-Tag: glibc-2.38~592 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=48941024bab62ebbd3588dc0d75ba0a6db9ea389;p=thirdparty%2Fglibc.git hurd: Fix xattr error value This does not seem like it is supposed to return negative error codes. Signed-off-by: Sergey Bugaev Message-Id: <20230212111044.610942-5-bugaevc@gmail.com> --- diff --git a/hurd/xattr.c b/hurd/xattr.c index 48914bcf26f..5a0fc263f5a 100644 --- a/hurd/xattr.c +++ b/hurd/xattr.c @@ -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) {