aboutsummaryrefslogtreecommitdiff
path: root/elf/pldd.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-08-17 10:31:15 -0400
committerUlrich Drepper <drepper@gmail.com>2011-08-17 10:31:15 -0400
commitc5305d88c7dc519edfaf55eed8d026a9038d7978 (patch)
tree2c999d13ecdcf2e37323a1e81b4ce5eed96eb0ef /elf/pldd.c
parent2772459841f32f2d5866672145f533975ebec717 (diff)
downloadglibc-c5305d88c7dc519edfaf55eed8d026a9038d7978.tar
glibc-c5305d88c7dc519edfaf55eed8d026a9038d7978.tar.gz
glibc-c5305d88c7dc519edfaf55eed8d026a9038d7978.tar.bz2
glibc-c5305d88c7dc519edfaf55eed8d026a9038d7978.zip
Fix some problem of 32-bit pldd on 64-bit platforms
Diffstat (limited to 'elf/pldd.c')
-rw-r--r--elf/pldd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/pldd.c b/elf/pldd.c
index ef3621c624..29879f7e85 100644
--- a/elf/pldd.c
+++ b/elf/pldd.c
@@ -274,7 +274,7 @@ get_process_info (int dfd, long int pid)
auxv_size += 512;
auxv = xrealloc (auxv, auxv_size);
- ssize_t n = read (fd, auxv, auxv_size);
+ ssize_t n = pread (fd, auxv, auxv_size, 0);
if (n < 0)
goto no_info;
if (n < auxv_size)