diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-02-27 17:59:27 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-02-27 17:59:27 +0000 |
commit | ba9fcb3f411a46085b82fc3352b858e04f66a19c (patch) | |
tree | 77a46e1f7768cf3184bdc64d914ebba8b4732f81 /elf/cache.c | |
parent | b76a75de25107ade8eb99f529d0cc24732a6da86 (diff) | |
download | glibc-ba9fcb3f411a46085b82fc3352b858e04f66a19c.zip glibc-ba9fcb3f411a46085b82fc3352b858e04f66a19c.tar.gz glibc-ba9fcb3f411a46085b82fc3352b858e04f66a19c.tar.bz2 |
Update.
* elf/rtld.c: Little optimizations in handling _dl_lazy.
* elf/cache.c (save_cache): Portability changes.
* elf/dl-profile.c (_dl_start_profile): Likewise.
* elf/sln.c: Cleanups. Remove arbitrary limits.
Diffstat (limited to 'elf/cache.c')
-rw-r--r-- | elf/cache.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/elf/cache.c b/elf/cache.c index d3c7f81..378ce8f 100644 --- a/elf/cache.c +++ b/elf/cache.c @@ -354,7 +354,8 @@ save_cache (const char *cache_name) temp_name); /* Create file. */ - fd = open (temp_name, O_CREAT|O_WRONLY|O_TRUNC|O_NOFOLLOW, 0644); + fd = open (temp_name, O_CREAT|O_WRONLY|O_TRUNC|O_NOFOLLOW, + S_IROTH|S_IRGRP|S_IRUSR|S_IWUSR); if (fd < 0) error (EXIT_FAILURE, errno, _("Can't create temporary cache file %s"), temp_name); @@ -385,9 +386,10 @@ save_cache (const char *cache_name) close (fd); /* Make sure user can always read cache file */ - if (chmod (temp_name, 0644)) + if (chmod (temp_name, S_IROTH|S_IRGRP|S_IRUSR|S_IWUSR)) error (EXIT_FAILURE, errno, - _("Changing access rights of %s to 0644 failed"), temp_name); + _("Changing access rights of %s to %#o failed"), temp_name, + S_IROTH|S_IRGRP|S_IRUSR|S_IWUSR); /* Move temporary to its final location. */ if (rename (temp_name, cache_name)) |