From e3cc0be3b30a0eaaea4b66fc0d49e385f5d29d3c Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 24 Apr 2002 21:07:00 +0000 Subject: [PATCH] (open_verify): Correct __lseek parameters. --- elf/dl-load.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/elf/dl-load.c b/elf/dl-load.c index 759dce4c19d..435142ad6e6 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -854,7 +854,7 @@ _dl_map_object_from_fd (const char *name, int fd, struct filebuf *fbp, else { phdr = alloca (maplength); - __lseek (fd, SEEK_SET, header->e_phoff); + __lseek (fd, header->e_phoff, SEEK_SET); if (__libc_read (fd, (void *) phdr, maplength) != maplength) { errstring = N_("cannot read file data"); @@ -1374,7 +1374,7 @@ open_verify (const char *name, struct filebuf *fbp) else { phdr = alloca (maplength); - __lseek (fd, SEEK_SET, ehdr->e_phoff); + __lseek (fd, ehdr->e_phoff, SEEK_SET); if (__libc_read (fd, (void *) phdr, maplength) != maplength) { read_error: @@ -1392,7 +1392,7 @@ open_verify (const char *name, struct filebuf *fbp) abi_note = (void *) (fbp->buf + ph->p_offset); else { - __lseek (fd, SEEK_SET, ph->p_offset); + __lseek (fd, ph->p_offset, SEEK_SET); if (__libc_read (fd, (void *) abi_note_buf, 32) != 32) goto read_error; -- 2.47.2