[Bug libc/24882] login: pututline uses potentially outdated cache

cvs-commit at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Fri Jan 17 14:03:00 GMT 2020


https://sourceware.org/bugzilla/show_bug.cgi?id=24882

--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.30/master branch has been updated by Florian Weimer
<fw@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=dfa1f9fe0df169cd099a6f5cc0c43ccdd73590d0

commit dfa1f9fe0df169cd099a6f5cc0c43ccdd73590d0
Author: Florian Weimer <fweimer@redhat.com>
Date:   Tue Nov 12 12:02:57 2019 +0100

    login: Introduce matches_last_entry to utmp processing

    This simplifies internal_getut_nolock and fixes a regression,
    introduced in commit be6b16d975683e6cca57852cd4cfe715b2a9d8b1
    ("login: Acquire write lock early in pututline [BZ #24882]")
    in pututxline because __utmp_equal can only compare process-related
    utmp entries.

    Fixes: be6b16d975683e6cca57852cd4cfe715b2a9d8b1
    Change-Id: Ib8a85002f7f87ee41590846d16d7e52bdb82f5a5
    (cherry picked from commit 76a7c103eb9060f9e3ba01d073ae4621a17d8b46)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list