about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2000-09-29 21:40:26 +0000
committerMark Kettenis <kettenis@gnu.org>2000-09-29 21:40:26 +0000
commitce1131e5e510e1d336a5686258a35810e46383cb (patch)
tree45ef47ab3980c789ef172796b9803f74ab4652cd
parent1df99b5f25ab1618ce681b8d078345554c6e06c9 (diff)
downloadglibc-ce1131e5e510e1d336a5686258a35810e46383cb.tar.gz
glibc-ce1131e5e510e1d336a5686258a35810e46383cb.tar.xz
glibc-ce1131e5e510e1d336a5686258a35810e46383cb.zip
* sysdeps/mach/hurd/dl-sysdep.c (__access): New function. Dummy implementation for use by the dynamic linker.
2000-09-29  Mark Kettenis  <kettenis@gnu.org>

	* sysdeps/mach/hurd/dl-sysdep.c (__access): New function.  Dummy
	implementation for use by the dynamic linker.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/mach/hurd/dl-sysdep.c11
2 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a175cb5a2c..04414b6ca4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-09-29  Mark Kettenis  <kettenis@gnu.org>
+
+	* sysdeps/mach/hurd/dl-sysdep.c (__access): New function.  Dummy
+	implementation for use by the dynamic linker.
+
 2000-09-29  Andreas Jaeger  <aj@suse.de>
 
 	* sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Protect DN_* by
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
index dcfbb39371..56e8118c49 100644
--- a/sysdeps/mach/hurd/dl-sysdep.c
+++ b/sysdeps/mach/hurd/dl-sysdep.c
@@ -654,6 +654,17 @@ __xstat (int vers, const char *file, struct stat *buf)
   return 0;
 }
 
+/* This function is called by the dynamic linker (rtld.c) to check
+   whether debugging malloc is allowed even for SUID binaries.  This
+   stub will always fail, which means that malloc-debugging is always
+   disabled for SUID binaries.  */
+int weak_function
+__access (const char *file, int type)
+{
+  errno = ENOSYS;
+  return -1;
+}
+
 pid_t weak_function
 __getpid ()
 {