[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hurd-commit
Subject:    [hurd,commited 2.34, 2.35] hurd: Fix arbitrary error code
From:       Samuel Thibault <samuel.thibault () ens-lyon ! org>
Date:       2022-04-18 15:55:42
Message-ID: 20220418155542.2283326-1-samuel.thibault () ens-lyon ! org
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic