]> git.ipfire.org Git - thirdparty/glibc.git/commit
login: Introduce matches_last_entry to utmp processing
authorFlorian Weimer <fweimer@redhat.com>
Tue, 12 Nov 2019 11:02:57 +0000 (12:02 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 12 Nov 2019 16:16:18 +0000 (17:16 +0100)
commit76a7c103eb9060f9e3ba01d073ae4621a17d8b46
tree49dd63a6449f5f4ab0b96e9348759ee7fcc64c1d
parentcba932a5a9e91cffd7f4172d7e91f9b2efb1f84b
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
login/utmp_file.c