]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
CID 1509059 winbind: Fixing print statement for time_t
authorRabinarayan Panigrahi <rapanigr@redhat.com>
Tue, 26 Aug 2025 06:32:25 +0000 (12:02 +0530)
committerMartin Schwenke <martins@samba.org>
Wed, 27 Aug 2025 02:17:28 +0000 (02:17 +0000)
Fixing DEBUG output for time_t to uintmax_t

Signed-off-by: Rabinarayan Panigrahi <rapanigr@redhat.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Wed Aug 27 02:17:29 UTC 2025 on atb-devel-224

source3/passdb/passdb.c

index 229e1637d7b381b255b1052ae0c3fdb23f1d6aff..297c6d0fbe47935aa01c8054e3e964087bc9e42a 100644 (file)
@@ -2226,8 +2226,8 @@ bool pdb_update_autolock_flag(struct samu *sampass, bool *updated)
        }
 
        LastBadPassword = pdb_get_bad_password_time(sampass);
-       DEBUG(7, ("pdb_update_autolock_flag: Account %s, LastBadPassword=%d, duration=%d, current time =%d.\n",
-                 pdb_get_username(sampass), (uint32_t)LastBadPassword, duration*60, (uint32_t)time(NULL)));
+       DEBUG(7, ("pdb_update_autolock_flag: Account %s, LastBadPassword=%ju, duration=%d, current time =%ju.\n",
+                 pdb_get_username(sampass), (uintmax_t)LastBadPassword, duration*60, (uintmax_t)time(NULL)));
 
        if (LastBadPassword == (time_t)0) {
                DEBUG(1,("pdb_update_autolock_flag: Account %s "