about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2017-12-15 17:00:50 +0100
committerThomas Schwinge <thomas@schwinge.name>2017-12-15 18:02:56 +0100
commitd232f2e137127139addde487f0f01881b52cc446 (patch)
tree98418dabe6f6cefab74d9a9b6e9fc89fb421774e
parent5170fa49b2a926f2a53139c607eb249c82a0fdd9 (diff)
downloadglibc-d232f2e137127139addde487f0f01881b52cc446.tar.gz
glibc-d232f2e137127139addde487f0f01881b52cc446.tar.xz
glibc-d232f2e137127139addde487f0f01881b52cc446.zip
Don't set errno in Hurd rtld's __access_noerrno
	* sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
	errno.

Fixes commit 819ea3347e3a30a611488ceeec53650baaeb7961.

Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/mach/hurd/dl-sysdep.c1
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 00161628c5..027f948ec9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-12-15  Thomas Schwinge  <thomas@codesourcery.com>
+
+	* sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
+	errno.
+
 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
 
 	* scripts/build-many-glibcs.py (Context.add_all_configs): Use
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
index 2cc342ec8e..5121ce325c 100644
--- a/sysdeps/mach/hurd/dl-sysdep.c
+++ b/sysdeps/mach/hurd/dl-sysdep.c
@@ -575,7 +575,6 @@ check_no_hidden(__access_noerrno);
 int weak_function
 __access_noerrno (const char *file, int type)
 {
-  errno = ENOSYS;
   return -1;
 }