From: Anoop C S Date: Wed, 10 Sep 2025 11:41:49 +0000 (+0530) Subject: source3/utils: Follow up to the fix for CID 1508980 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b2468d85f35c13697997e139f160ff35aeeda54e;p=thirdparty%2Fsamba.git source3/utils: Follow up to the fix for CID 1508980 Fixing two other occurrences for the same CID in the same file. See previous commit ba0a748654b11bff5caaf3e8aca0ab7a5bd7022c. Signed-off-by: Anoop C S Reviewed-by: Volker Lendecke --- diff --git a/source3/utils/net_rpc_sh_acct.c b/source3/utils/net_rpc_sh_acct.c index dc2e56f5f9b..c45ea03399a 100644 --- a/source3/utils/net_rpc_sh_acct.c +++ b/source3/utils/net_rpc_sh_acct.c @@ -200,7 +200,7 @@ static int account_show(struct net_context *c, d_printf(_("Minimum password age: ")); if (!nt_time_is_zero((NTTIME *)&i1->min_password_age)) { time_t t = nt_time_to_unix_abs((NTTIME *)&i1->min_password_age); - d_printf(_("%d seconds\n"), (int)t); + d_printf(_("%jd seconds\n"), (intmax_t)t); } else { d_printf(_("not set\n")); } @@ -208,7 +208,7 @@ static int account_show(struct net_context *c, d_printf(_("Maximum password age: ")); if (nt_time_is_set((NTTIME *)&i1->max_password_age)) { time_t t = nt_time_to_unix_abs((NTTIME *)&i1->max_password_age); - d_printf(_("%d seconds\n"), (int)t); + d_printf(_("%jd seconds\n"), (intmax_t)t); } else { d_printf(_("not set\n")); }