summaryrefslogtreecommitdiff
path: root/src/ldso
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-09-29 18:14:46 -0400
committerRich Felker <dalias@aerifal.cx>2012-09-29 18:14:46 -0400
commitd712dd396d7d69686f7001fd986bfc59217b72dd (patch)
tree97fa1f57688e106fb0fe94c27b6d7484b8720db5 /src/ldso
parent8582a6e9f25dd7b87d72961f58008052a4cac473 (diff)
downloadmusl-d712dd396d7d69686f7001fd986bfc59217b72dd.tar.gz
more close-on-exec fixes, mostly using new "e" flag to fopen
Diffstat (limited to 'src/ldso')
-rw-r--r--src/ldso/dynlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c
index d0b57e8d..960e0898 100644
--- a/src/ldso/dynlink.c
+++ b/src/ldso/dynlink.c
@@ -438,7 +438,7 @@ static struct dso *load_library(const char *name)
if (fd < 0 && env_path) fd = path_open(name, env_path, buf, sizeof buf);
if (fd < 0) {
if (!sys_path) {
- FILE *f = fopen(ETC_LDSO_PATH, "r");
+ FILE *f = fopen(ETC_LDSO_PATH, "rbe");
if (f) {
if (getline(&sys_path, (size_t[1]){0}, f) > 0)
sys_path[strlen(sys_path)-1]=0;