Special care has to be taken for 32 bit systems with a 64 bit time_t,
since their long data type is still 32 bit.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Link: <https://github.com/shadow-maint/shadow/pull/876>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
if (!quiet) {
time_t t = time (NULL);
if ( (t != 0)
- && (spw->sp_lstchg > (long) t / DAY)) {
+ && (spw->sp_lstchg > t / DAY)) {
printf (_("user %s: last password change in the future\n"),
spw->sp_namp);
*errors += 1;