Fix: typecast changing from (int)nt_time_to_unix_abs to
(intmax_t)nt_time_to_unix_abs) as intmax_t can hold
epoch seconds after 2038 year
Signed-off-by: Rabinarayan Panigrahi <rapanigr@redhat.com>
Reviewed-by: Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Sep 10 10:38:24 UTC 2025 on atb-devel-224
}
unix_to_nt_time_abs((NTTIME *)&i1->max_password_age, atoi(argv[0]));
- d_printf(_("Setting maximum password age to %d seconds\n"),
- (int)nt_time_to_unix_abs((NTTIME *)&i1->max_password_age));
+ d_printf(_("Setting maximum password age to %jd seconds\n"),
+ (intmax_t)nt_time_to_unix_abs((NTTIME *)&i1->max_password_age));
return 1;
}