From: Roland McGrath Date: Thu, 11 Dec 2008 05:42:06 +0000 (-0800) Subject: * elf_getarhdr.c (elf_getarhdr): Fix missing rename in last change. X-Git-Tag: elfutils-0.138~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d353328036180fc028fd367e5fd49e69511b4436;p=thirdparty%2Felfutils.git * elf_getarhdr.c (elf_getarhdr): Fix missing rename in last change. --- diff --git a/libelf/ChangeLog b/libelf/ChangeLog index f4da12952..5c603f2f4 100644 --- a/libelf/ChangeLog +++ b/libelf/ChangeLog @@ -1,3 +1,7 @@ +2008-12-10 Roland McGrath + + * elf_getarhdr.c (elf_getarhdr): Fix missing rename in last change. + 2008-10-22 Petr Machata * elf_rawfile.c (elf_rawfile): Lock around elf-> references. diff --git a/libelf/elf_getarhdr.c b/libelf/elf_getarhdr.c index 6cc6eddbf..61e4e0a29 100644 --- a/libelf/elf_getarhdr.c +++ b/libelf/elf_getarhdr.c @@ -77,7 +77,7 @@ elf_getarhdr (elf) /* Make sure we have read the archive header. */ if (parent->state.ar.elf_ar_hdr.ar_name == NULL - && __libelf_next_arhdr (parent) != 0) + && __libelf_next_arhdr_wrlock (parent) != 0) { rwlock_wrlock (parent->lock); int st = __libelf_next_arhdr_wrlock (parent);