summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libelf/ChangeLog4
-rw-r--r--libelf/elf_getarhdr.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/libelf/ChangeLog b/libelf/ChangeLog
index f4da1295..5c603f2f 100644
--- a/libelf/ChangeLog
+++ b/libelf/ChangeLog
@@ -1,3 +1,7 @@
+2008-12-10 Roland McGrath <[email protected]>
+
+ * elf_getarhdr.c (elf_getarhdr): Fix missing rename in last change.
+
2008-10-22 Petr Machata <[email protected]>
* elf_rawfile.c (elf_rawfile): Lock around elf-> references.
diff --git a/libelf/elf_getarhdr.c b/libelf/elf_getarhdr.c
index 6cc6eddb..61e4e0a2 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);