diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-09-29 18:14:46 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-09-29 18:14:46 -0400 |
commit | d712dd396d7d69686f7001fd986bfc59217b72dd (patch) | |
tree | 97fa1f57688e106fb0fe94c27b6d7484b8720db5 /src/ldso | |
parent | 8582a6e9f25dd7b87d72961f58008052a4cac473 (diff) | |
download | musl-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.c | 2 |
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; |