summaryrefslogtreecommitdiff
path: root/libexec/rtld-elf/libmap.c
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2012-11-04 21:42:24 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2012-11-04 21:42:24 +0000
commite194282943c98622f529ff0e8c9a21f0e796367d (patch)
tree969ce31ca989f0ab57d7d234f716e31b0d9b96db /libexec/rtld-elf/libmap.c
parent4cc5fc9a0c04cf870021cb1b68364f9c20bcdfc6 (diff)
Notes
Diffstat (limited to 'libexec/rtld-elf/libmap.c')
-rw-r--r--libexec/rtld-elf/libmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/rtld-elf/libmap.c b/libexec/rtld-elf/libmap.c
index 1efc8bc5de51..29dc5381b021 100644
--- a/libexec/rtld-elf/libmap.c
+++ b/libexec/rtld-elf/libmap.c
@@ -121,7 +121,7 @@ lmc_parse_file(char *path)
}
}
- fd = open(rpath, O_RDONLY);
+ fd = open(rpath, O_RDONLY | O_CLOEXEC);
if (fd == -1) {
dbg("lm_parse_file: open(\"%s\") failed, %s", rpath,
rtld_strerror(errno));