mirror of git://sourceware.org/git/glibc.git
Update.
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:
parent
3b6906390e
commit
25ee87d6f1
|
@ -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>
|
2000-04-10 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
* posix/globtest.sh: Skip tests that depend on unreadable
|
* posix/globtest.sh: Skip tests that depend on unreadable
|
||||||
|
|
|
@ -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.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Andreas Jaeger <aj@suse.de>, 1999.
|
Contributed by Andreas Jaeger <aj@suse.de>, 1999.
|
||||||
|
|
||||||
|
@ -301,6 +301,11 @@ save_cache (const char *cache_name)
|
||||||
|
|
||||||
close (fd);
|
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. */
|
/* Move temporary to its final location. */
|
||||||
if (rename (temp_name, cache_name))
|
if (rename (temp_name, cache_name))
|
||||||
error (EXIT_FAILURE, errno, _("Renaming of %s to %s failed"), temp_name,
|
error (EXIT_FAILURE, errno, _("Renaming of %s to %s failed"), temp_name,
|
||||||
|
|
Loading…
Reference in New Issue