1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

lib: use nt_time_to_unix_full() in nt_time_string()

This enables printing time values before the UNIX epoch coming in over the wire
in smbclient allinfo command.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=7771

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2019-11-22 11:47:22 +01:00 committed by Jeremy Allison
parent 2e687d0e4d
commit 2b938b4d33

View File

@ -496,7 +496,7 @@ _PUBLIC_ const char *nt_time_string(TALLOC_CTX *mem_ctx, NTTIME nt)
if (nt == 0) {
return "NTTIME(0)";
}
t = nt_time_to_unix(nt);
t = nt_time_to_full_time_t(nt);
return timestring(mem_ctx, t);
}