summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-10-07 22:53:19 -0400
committerMike Frysinger <vapier@gentoo.org>2009-10-07 22:53:39 -0400
commit3cf9c9a2969ddc9927401a4cf9d8d498ec3d8313 (patch)
tree467627b30d6a67f650b4f6a86c5c5708841a267e /ldso
parentb8f1f91cc6d7b579fdb2370ab046565f9930aa09 (diff)
ldso: use O_CLOEXEC for cache file
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'ldso')
-rw-r--r--ldso/ldso/dl-elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/ldso/dl-elf.c b/ldso/ldso/dl-elf.c
index d1cf2d771..e4086d5e9 100644
--- a/ldso/ldso/dl-elf.c
+++ b/ldso/ldso/dl-elf.c
@@ -51,7 +51,7 @@ int _dl_map_cache(void)
return 0;
if (_dl_stat(LDSO_CACHE, &st)
- || (fd = _dl_open(LDSO_CACHE, O_RDONLY, 0)) < 0) {
+ || (fd = _dl_open(LDSO_CACHE, O_RDONLY|O_CLOEXEC, 0)) < 0) {
_dl_cache_addr = MAP_FAILED; /* so we won't try again */
return -1;
}