From c5305d88c7dc519edfaf55eed8d026a9038d7978 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 17 Aug 2011 10:31:15 -0400 Subject: Fix some problem of 32-bit pldd on 64-bit platforms --- elf/pldd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'elf/pldd.c') 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) -- cgit v1.2.1