about summary refs log tree commit diff
path: root/nss
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-04-12 22:14:34 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-04-18 17:54:13 +0200
commit5d8c7776343b3f1b96ef7777e4504378f23c041a (patch)
tree291dd3db5dec464e788112c16ab2ec4848ea4945 /nss
parent290db09546b260a30137d03ce97a857e6f15b648 (diff)
downloadglibc-5d8c7776343b3f1b96ef7777e4504378f23c041a.tar.gz
glibc-5d8c7776343b3f1b96ef7777e4504378f23c041a.tar.xz
glibc-5d8c7776343b3f1b96ef7777e4504378f23c041a.zip
hurd: Fix arbitrary error code
ELIBBAD is Linux-specific.

(cherry picked from commit 67ab66541dc1164540abda284645e38be90b5119)
Diffstat (limited to 'nss')
-rw-r--r--nss/nss_test_errno.c2
1 files changed, 1 insertions, 1 deletions
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.  */