]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
source3/utils: Follow up to the fix for CID 1508980
authorAnoop C S <anoopcs@samba.org>
Wed, 10 Sep 2025 11:41:49 +0000 (17:11 +0530)
committerAnoop C S <anoopcs@samba.org>
Wed, 10 Sep 2025 14:20:34 +0000 (14:20 +0000)
Fixing two other occurrences for the same CID in the same file.
See previous commit ba0a748654b11bff5caaf3e8aca0ab7a5bd7022c.

Signed-off-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/utils/net_rpc_sh_acct.c

index dc2e56f5f9b5087ddfb4d1781b32847361a1aa2b..c45ea03399a89d09ce211170660a5644ed17be85 100644 (file)
@@ -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"));
        }