login: Use unsigned 32-bit types for seconds-since-epoch
commit5361ad3910c257bc327567be76fde532ed238e42
authorFlorian Weimer <fweimer@redhat.com>
Fri, 19 Apr 2024 12:38:17 +0000 (19 14:38 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 19 Apr 2024 12:38:17 +0000 (19 14:38 +0200)
tree76cf92324c5eecbd0dfb9ebf8940a94aa85d2386
parent9abdae94c7454c45e02e97e4ed1eb1b1915d13d8
login: Use unsigned 32-bit types for seconds-since-epoch

These fields store timestamps when the system was running.  No Linux
systems existed before 1970, so these values are unused.  Switching
to unsigned types allows continued use of the existing struct layouts
beyond the year 2038.

The intent is to give distributions more time to switch to improved
interfaces that also avoid locking/data corruption issues.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
NEWS
bits/utmp.h
login/Makefile
login/tst-utmp-unsigned-64.c [new file with mode: 0644]
login/tst-utmp-unsigned.c [new file with mode: 0644]
sysdeps/gnu/bits/utmpx.h