2001-01-08 Ulrich Drepper <drepper@redhat.com>
+ * elf/rtld.c (process_envvars): Place output files for profiling
+ in SUID binaries in /var/profile.
+
* elf/dl-load.c (_dl_map_object): Don't look in cache for
preloading in SUID binaries.
/* Run time dynamic linker.
- Copyright (C) 1995-1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
char *debug_output = NULL;
/* This is the default place for profiling data file. */
- _dl_profile_output = "/var/tmp";
+ _dl_profile_output = __libc_enable_secure ? "/var/profile" : "/var/tmp";
while ((envline = _dl_next_ld_env_entry (&runp)) != NULL)
{