From: Volker Lendecke Date: Wed, 4 Dec 2024 16:00:50 +0000 (+0100) Subject: net: Fix Coverity ID 1508974 Use of 32-bit time_t X-Git-Tag: tdb-1.4.13~303 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=be20007cc75e78cd2b786667c9345849ad7b4e47;p=thirdparty%2Fsamba.git net: Fix Coverity ID 1508974 Use of 32-bit time_t Signed-off-by: Volker Lendecke Reviewed-by: Pavel Filipenský --- diff --git a/source3/utils/net_rpc_sh_acct.c b/source3/utils/net_rpc_sh_acct.c index e73282a7e35..55abafb4bca 100644 --- a/source3/utils/net_rpc_sh_acct.c +++ b/source3/utils/net_rpc_sh_acct.c @@ -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])); - d_printf(_("Setting minimum password age to %d seconds\n"), - (int)nt_time_to_unix_abs((NTTIME *)&i1->min_password_age)); + d_printf(_("Setting minimum password age to %" PRIu64 " seconds\n"), + (uint64_t)nt_time_to_unix_abs( + (NTTIME *)&i1->min_password_age)); return 1; }