diff options
-rw-r--r-- | libexec/rtld-elf/libmap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/rtld-elf/libmap.c b/libexec/rtld-elf/libmap.c index 239dd0c..1efc8bc 100644 --- a/libexec/rtld-elf/libmap.c +++ b/libexec/rtld-elf/libmap.c @@ -121,16 +121,16 @@ lmc_parse_file(char *path) } } - fd = open(path, O_RDONLY); + fd = open(rpath, O_RDONLY); if (fd == -1) { - dbg("lm_init: open(\"%s\") failed, %s", path, + dbg("lm_parse_file: open(\"%s\") failed, %s", rpath, rtld_strerror(errno)); free(rpath); return; } if (fstat(fd, &st) == -1) { close(fd); - dbg("lm_init: fstat(\"%s\") failed, %s", path, + dbg("lm_parse_file: fstat(\"%s\") failed, %s", rpath, rtld_strerror(errno)); free(rpath); return; @@ -138,7 +138,7 @@ lmc_parse_file(char *path) lm_map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); if (lm_map == (const char *)MAP_FAILED) { close(fd); - dbg("lm_init: mmap(\"%s\") failed, %s", path, + dbg("lm_parse_file: mmap(\"%s\") failed, %s", rpath, rtld_strerror(errno)); free(rpath); return; |