summaryrefslogtreecommitdiff
path: root/ldso/ldso/dl-elf.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-02-10 06:50:28 +0000
committerEric Andersen <andersen@codepoet.org>2004-02-10 06:50:28 +0000
commit499c27e1bd7015c48cff2c8f99237ab7dbf66a7b (patch)
tree3f2f07513818891b824a9d226195a37731cc40af /ldso/ldso/dl-elf.c
parentac1281c2785fd4487817690b270fc3f052280a54 (diff)
Fixup the definition of _dl_open, and move some bits back where they were,
till I properly finish the next step in my evil plan.
Diffstat (limited to 'ldso/ldso/dl-elf.c')
-rw-r--r--ldso/ldso/dl-elf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldso/ldso/dl-elf.c b/ldso/ldso/dl-elf.c
index ec324d6c4..cef44965e 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) {
+ || (fd = _dl_open(LDSO_CACHE, O_RDONLY, 0)) < 0) {
_dl_dprintf(2, "%s: can't open cache '%s'\n", _dl_progname, LDSO_CACHE);
_dl_cache_addr = (caddr_t) - 1; /* so we won't try again */
return -1;
@@ -429,7 +429,7 @@ struct elf_resolve *_dl_load_elf_shared_library(int secure,
}
libaddr = 0;
- infile = _dl_open(libname, O_RDONLY);
+ infile = _dl_open(libname, O_RDONLY, 0);
if (infile < 0) {
#if 0
/*