Fix: typecast changing from (int)nt_time_to_unix_abs(&i12->lockout_window)
to (intmax_t)nt_time_to_unix_abs(&i12->lockout_window)
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>
}
unix_to_nt_time_abs(&i12->lockout_window, atoi(argv[0]));
- d_printf(_("Setting bad password reset duration to %d seconds\n"),
- (int)nt_time_to_unix_abs(&i12->lockout_window));
+ d_printf(_("Setting bad password reset duration to %jd seconds\n"),
+ (intmax_t)nt_time_to_unix_abs(&i12->lockout_window));
return 12;
}