[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH glibc 4/12] hurd: Fix xattr error value
From: |
Sergey Bugaev |
Subject: |
[RFC PATCH glibc 4/12] hurd: Fix xattr error value |
Date: |
Sun, 12 Feb 2023 14:10:35 +0300 |
This does not seem like it is supposed to return negative error codes.
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
---
hurd/xattr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hurd/xattr.c b/hurd/xattr.c
index 48914bcf..5a0fc263 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)
{
--
2.39.1
- Re: [RFC PATCH hurd 6/12] hurd: Fix modes_t and speeds_t types on 64-bit, (continued)
[RFC PATCH glibc 9/12] mach: Look for mach_i386.defs on x86_64 too, Sergey Bugaev, 2023/02/12
Re: [RFC PATCH glibc 9/12] mach: Look for mach_i386.defs on x86_64 too, Joseph Myers, 2023/02/16
[RFC PATCH glibc 4/12] hurd: Fix xattr error value,
Sergey Bugaev <=
[RFC PATCH mig 8/12] Set max type alignment to sizeof(long), Sergey Bugaev, 2023/02/12
[RFC PATCH glibc 10/12] hurd: Set up the basic tree for x86_64-gnu, Sergey Bugaev, 2023/02/12
[RFC PATCH glibc 12/12] C11 thrd: Downgrade the default alignment of mtx_t, Sergey Bugaev, 2023/02/12
[RFC PATCH glibc 5/12] htl: Fix semaphore reference, Sergey Bugaev, 2023/02/12