lib: update null_nttime() of -1: -1 is NTTIME_FREEZE
authorRalph Boehme <slow@samba.org>
Thu, 28 Oct 2021 08:18:17 +0000 (10:18 +0200)
committerJule Anger <janger@samba.org>
Wed, 10 Nov 2021 16:21:10 +0000 (16:21 +0000)
commitbfb893f5efcf9db1803e8cbc2c87f3b2606f6399
tree7b42cc24e8a4607caed0250c8491628bd0eb44a7
parent0b7c1089d1200fa2de6f2565548e8cc795d6685d
lib: update null_nttime() of -1: -1 is NTTIME_FREEZE

NTTIME_FREEZE is not a nil sentinel value, instead it implies special, yet
unimplemented semantics. Callers must deal with those values specifically and
null_nttime() must not lie about their nature.

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 5503bde93bddf3634b183e665773399c110251d4)
lib/util/tests/time.c
lib/util/time.c