Commit c408d9a53dbdaf48b555f216e250a2b3b8e48113

Paul Eggert 2023-07-29T17:06:42

readutmp: work around glibc utmpx bug When compiled with _TIME_BITS=64, glibc <utmpx.h> does not work, because the files use 32-bit time_t and the code passes this to the user unmodified, but <utmpx.h> defines a struct with 64-bit time_t. Work around this compatibility bug. Problem reported by Jakub Wilk via Sven Joachim <https://bugs.gnu.org/64937>. * lib/readutmp.c (copy_utmp_entry): New function. (read_utmp): Use it.