]> git.ipfire.org Git - thirdparty/glibc.git/commit
login: Remove utmp backend jump tables [BZ #23518]
authorFlorian Weimer <fweimer@redhat.com>
Mon, 5 Aug 2019 13:54:10 +0000 (15:54 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 5 Aug 2019 13:55:05 +0000 (15:55 +0200)
commit1a7fe2ebe52b3c8bf465d1756e69452d05c1c103
tree1d32b2e5a5c55d660354cefb1b02918b62127300
parenta6c1ce778e5c05a2e6925883b410157ef47654fd
login: Remove utmp backend jump tables [BZ #23518]

There is just one file-based implementation, so this dispatch
mechanism is unnecessary.  Instead of the vtable pointer
__libc_utmp_jump_table, use a non-negative file_fd as the indicator
that the backend is initialized.
ChangeLog
login/getutent_r.c
login/getutid_r.c
login/getutline_r.c
login/updwtmp.c
login/utmp-private.h
login/utmp_file.c
login/utmpname.c
manual/users.texi
sysdeps/unix/getlogin_r.c