From d353328036180fc028fd367e5fd49e69511b4436 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 10 Dec 2008 21:42:06 -0800 Subject: [PATCH] * elf_getarhdr.c (elf_getarhdr): Fix missing rename in last change. --- libelf/ChangeLog | 4 ++++ libelf/elf_getarhdr.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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); -- 2.47.2