]> git.ipfire.org Git - thirdparty/glibc.git/commit
login: Fix updwtmp, updwtmx unlocking
authorFlorian Weimer <fweimer@redhat.com>
Thu, 15 Aug 2019 08:30:23 +0000 (10:30 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 17 Jan 2020 12:54:11 +0000 (13:54 +0100)
commit16a576504240b287a2d291fa5267ec1c712c7059
tree719d1b141a04aa29ba3d10681a4d7fb73410aa44
parent2f02abb81cee4f6ba65d9e1c89e8e26558e0dac0
login: Fix updwtmp, updwtmx unlocking

Commit 5a3afa9738f3dbbaf8c0a35665318c1af782111b (login: Replace
macro-based control flow with function calls in utmp) introduced
a regression because after it, __libc_updwtmp attempts to unlock
the wrong file descriptor.

(cherry picked from commit 341da5b4b6253de9a7581a066f33f89cacb44dec)
ChangeLog
login/Makefile
login/tst-updwtmpx.c [new file with mode: 0644]
login/utmp_file.c