diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2009-10-06 17:14:39 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2009-10-06 17:14:39 +0000 |
| commit | 1c232cd509c1fd9cb772bd829c3a220a5a6379bb (patch) | |
| tree | 26dbb6219a1f0f19b26edc64dc5b0985cc31c4b9 /libexec/rtld-elf/map_object.c | |
| parent | a502a84d5a0d6c3cf180278d39bf25bbf5313fd9 (diff) | |
Notes
Diffstat (limited to 'libexec/rtld-elf/map_object.c')
| -rw-r--r-- | libexec/rtld-elf/map_object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/rtld-elf/map_object.c b/libexec/rtld-elf/map_object.c index 6de0c9e1a3d0..d231830b351d 100644 --- a/libexec/rtld-elf/map_object.c +++ b/libexec/rtld-elf/map_object.c @@ -273,7 +273,7 @@ get_elf_header (int fd, const char *path) } u; ssize_t nbytes; - if ((nbytes = read(fd, u.buf, PAGE_SIZE)) == -1) { + if ((nbytes = pread(fd, u.buf, PAGE_SIZE, 0)) == -1) { _rtld_error("%s: read error: %s", path, strerror(errno)); return NULL; } |
