summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-05-05 16:37:14 +0000
committerbapt <bapt@FreeBSD.org>2012-05-05 16:37:14 +0000
commit1483e7e7af8d962cf5bbaa058b0aaad8878fb322 (patch)
treea9daa8785b0aa857924ffb0ec0c1cd299617a41e /libexec
parentef4b1ee3637ce994031991d68bbec576d64037ab (diff)
downloadFreeBSD-src-1483e7e7af8d962cf5bbaa058b0aaad8878fb322.zip
FreeBSD-src-1483e7e7af8d962cf5bbaa058b0aaad8878fb322.tar.gz
open the resolved path
fix debug message Submitted by: John Marino <draco@marino.st> Approved by: des (mentor)
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rtld-elf/libmap.c8
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;
OpenPOWER on IntegriCloud