about summary refs log tree commit diff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-07-12 06:32:02 +0000
committerUlrich Drepper <drepper@redhat.com>2001-07-12 06:32:02 +0000
commit8c35c0da02e3c7a835263e0442ff0fa3d9da79c5 (patch)
tree0e3df52074c6b9aaf9edc65c8535d3418ed2bec9 /sysdeps/generic
parent9a321276ef6bf30f05c75bc167bf8b3e216a2620 (diff)
downloadglibc-8c35c0da02e3c7a835263e0442ff0fa3d9da79c5.tar.gz
glibc-8c35c0da02e3c7a835263e0442ff0fa3d9da79c5.tar.xz
glibc-8c35c0da02e3c7a835263e0442ff0fa3d9da79c5.zip
Update.
2001-07-01  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk): Remove duplicate
	sbrk.  Closes PR libc/2312.

2001-07-01  Andreas Jaeger  <aj@suse.de>

	* sysdeps/generic/segfault.c (install_handler): Handle case that
	the output file does not exists.  Closes PR libc/2345.

2001-07-11  Ulrich Drepper  <drepper@redhat.com>

	* intl/locale.alias: Use he language code for hebrew, not il
	[PR libc/2382].

2001-07-11  Jakub Jelinek  <jakub@redhat.com>

	* iconv/gconv_int.h: Fix comment typo.

	* hurd/hurdsig.c (_hurdsig_init): Remove a useless line of code.
	backwards conditional in test for x == 1.0.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/segfault.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sysdeps/generic/segfault.c b/sysdeps/generic/segfault.c
index 8a8ee1d1a2..7e364f025f 100644
--- a/sysdeps/generic/segfault.c
+++ b/sysdeps/generic/segfault.c
@@ -237,6 +237,11 @@ install_handler (void)
 
   /* Preserve the output file name if there is any given.  */
   name = getenv ("SEGFAULT_OUTPUT_NAME");
-  if (name != NULL && name[0] != '\0' && access (name, R_OK | W_OK) == 0)
-    fname = __strdup (name);
+  if (name != NULL && name[0] != '\0')
+    {
+      int ret = access (name, R_OK | W_OK);
+
+      if (ret == 0 || (ret == -1 && errno == ENOENT))
+	fname = __strdup (name);
+    }
 }