public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] hurd: Fix xattr error value
@ 2023-02-12 14:56 Samuel Thibault
  0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2023-02-12 14:56 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=48941024bab62ebbd3588dc0d75ba0a6db9ea389

commit 48941024bab62ebbd3588dc0d75ba0a6db9ea389
Author: Sergey Bugaev <bugaevc@gmail.com>
Date:   Sun Feb 12 14:10:35 2023 +0300

    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>

Diff:
---
 hurd/xattr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hurd/xattr.c b/hurd/xattr.c
index 48914bcf26..5a0fc263f5 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)
 	{

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-12 14:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-12 14:56 [glibc] hurd: Fix xattr error value Samuel Thibault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).