2000-04-10  Thorsten Kukuk  <kukuk@suse.de>

	* elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
This commit is contained in:
Ulrich Drepper 2000-04-10 16:22:52 +00:00
parent 3b6906390e
commit 25ee87d6f1
2 changed files with 18 additions and 9 deletions

View File

@ -1,3 +1,7 @@
2000-04-10 Thorsten Kukuk <kukuk@suse.de>
* elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
2000-04-10 Andreas Schwab <schwab@suse.de>
* posix/globtest.sh: Skip tests that depend on unreadable

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1999 Free Software Foundation, Inc.
/* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Andreas Jaeger <aj@suse.de>, 1999.
@ -301,6 +301,11 @@ save_cache (const char *cache_name)
close (fd);
/* Make sure user can always read cache file */
if (chmod (temp_name, 0644))
error (EXIT_FAILURE, errno,
_("Changing access rights of %s to 0644 failed"), temp_name);
/* Move temporary to its final location. */
if (rename (temp_name, cache_name))
error (EXIT_FAILURE, errno, _("Renaming of %s to %s failed"), temp_name,