* sysdeps/generic/segfault.c (install_handler): Check output file
	name with access().
This commit is contained in:
Ulrich Drepper 2001-01-08 18:06:26 +00:00
parent 52ee62236b
commit 2090dd7364
3 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2001-01-08 Ulrich Drepper <drepper@redhat.com>
* sysdeps/generic/segfault.c (install_handler): Check output file
name with access().
* resolv/res_query.c: Use simply getenv() for HOSTALIASES.
* sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add HOSTALIASES.

View File

@ -1,3 +1,8 @@
2001-01-08 Jakub Jelinek <jakub@redhat.com>
* locales/cs_CZ: Fix grammar of comment above abmon.
Reported by Stanislav Brabec <utx@penguin.cz>.
2000-12-31 Andreas Jaeger <aj@suse.de>
* tst-fmon.c (main): Use return instead of exit to avoid warning.

View File

@ -1,5 +1,5 @@
/* Catch segmentation faults and print backtrace.
Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
@ -237,6 +237,6 @@ install_handler (void)
/* Preserve the output file name if there is any given. */
name = getenv ("SEGFAULT_OUTPUT_NAME");
if (name != NULL && name[0] != '\0')
if (name != NULL && name[0] != '\0' && __access (name, R_OK | W_OK) == 0)
fname = __strdup (name);
}