public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] hurd: Fix lsetxattr return value
@ 2024-06-10 20:08 Samuel Thibault
  0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2024-06-10 20:08 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=74f9ee3b91931967df5601ad63a4b02f5cd75b43

commit 74f9ee3b91931967df5601ad63a4b02f5cd75b43
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Jun 10 21:56:13 2024 +0200

    hurd: Fix lsetxattr return value
    
    The manpage says that lsetxattr returns 0 on success, like setxattr.

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

diff --git a/sysdeps/mach/hurd/lsetxattr.c b/sysdeps/mach/hurd/lsetxattr.c
index 3f5d335a1a..49487f78fb 100644
--- a/sysdeps/mach/hurd/lsetxattr.c
+++ b/sysdeps/mach/hurd/lsetxattr.c
@@ -32,5 +32,5 @@ lsetxattr (const char *path, const char *name, const void *value, size_t size,
     return -1;
   err = _hurd_xattr_set (port, name, value, size, flags);
   __mach_port_deallocate (__mach_task_self (), port);
-  return err ? __hurd_fail (err) : size;
+  return __hurd_fail (err);
 }

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

only message in thread, other threads:[~2024-06-10 20:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-10 20:08 [glibc] hurd: Fix lsetxattr return 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).