]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(open_verify): Correct __lseek parameters.
authorUlrich Drepper <drepper@redhat.com>
Wed, 24 Apr 2002 21:07:00 +0000 (21:07 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 24 Apr 2002 21:07:00 +0000 (21:07 +0000)
elf/dl-load.c

index 759dce4c19dbea29e9c5a5e90a658bc26d966c0f..435142ad6e6102a024e90bc5a210f021781056aa 100644 (file)
@@ -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;