public inbox for libc-stable@sourceware.org
 help / color / mirror / Atom feed
* [hurd,commited 2.34, 2.35] hurd: Fix arbitrary error code
@ 2022-04-18 15:55 Samuel Thibault
  0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2022-04-18 15:55 UTC (permalink / raw)
  To: libc-stable; +Cc: Samuel Thibault, commit-hurd

ELIBBAD is Linux-specific.

(cherry picked from commit 67ab66541dc1164540abda284645e38be90b5119)
---
 nss/nss_test_errno.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nss/nss_test_errno.c b/nss/nss_test_errno.c
index 680f8a07b9..59a5c717be 100644
--- a/nss/nss_test_errno.c
+++ b/nss/nss_test_errno.c
@@ -28,7 +28,7 @@ static void __attribute__ ((constructor))
 init (void)
 {
   /* An arbitrary error code which is otherwise not used.  */
-  errno = ELIBBAD;
+  errno = -1009;
 }
 
 /* Lookup functions for pwd follow that do not return any data.  */
-- 
2.35.1


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

only message in thread, other threads:[~2022-04-18 15:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-18 15:55 [hurd,commited 2.34, 2.35] hurd: Fix arbitrary error code 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).