1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

net: Fix Coverity ID 1508974 Use of 32-bit time_t

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
This commit is contained in:
Volker Lendecke 2024-12-04 17:00:50 +01:00
parent c1b9dc9f7a
commit be20007cc7

View File

@ -355,8 +355,9 @@ static int account_set_minpwage(struct net_context *c,
} }
unix_to_nt_time_abs((NTTIME *)&i1->min_password_age, atoi(argv[0])); unix_to_nt_time_abs((NTTIME *)&i1->min_password_age, atoi(argv[0]));
d_printf(_("Setting minimum password age to %d seconds\n"), d_printf(_("Setting minimum password age to %" PRIu64 " seconds\n"),
(int)nt_time_to_unix_abs((NTTIME *)&i1->min_password_age)); (uint64_t)nt_time_to_unix_abs(
(NTTIME *)&i1->min_password_age));
return 1; return 1;
} }