This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Hi, here is a small patch for ldconfig. The access rights for /etc/ld.so.cache needs to be 0644, or a normal user cannot read it. But in the moment a umask of 077 will result in a unreadable ld.so.cache. Thorsten 2000-04-10 Thorsten Kukuk <kukuk@suse.de> * elf/cache.c: Make sure /etc/ld.so.cache is mode 644 --- elf/cache.c +++ elf/cache.c 2000/04/10 11:55:09 @@ -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,11 +301,15 @@ close (fd); + /* Make sure user can always read cache file */ + if (chmod (temp_name, 0644)) + error (EXIT_FAILURE, errno, _("Chmod 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, cache_name); - + /* Free all allocated memory. */ free (file_entries); free (strings); -- Thorsten Kukuk http://www.suse.de/~kukuk/ kukuk@suse.de SuSE GmbH Schanzaeckerstr. 10 90443 Nuernberg Linux is like a Vorlon. It is incredibly powerful, gives terse, cryptic answers and has a lot of things going on in the background.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |