diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2023-02-12 14:10:35 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-02-12 15:56:21 +0100 |
commit | 48941024bab62ebbd3588dc0d75ba0a6db9ea389 (patch) | |
tree | 39303136812c003a7935f5cca1e587dce0dcb513 | |
parent | 62d6c3303089d9c708527ab7bf98348a6429e8c3 (diff) | |
download | glibc-48941024bab62ebbd3588dc0d75ba0a6db9ea389.zip glibc-48941024bab62ebbd3588dc0d75ba0a6db9ea389.tar.gz glibc-48941024bab62ebbd3588dc0d75ba0a6db9ea389.tar.bz2 |
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>
-rw-r--r-- | hurd/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hurd/xattr.c b/hurd/xattr.c index 48914bc..5a0fc26 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) { |