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)
committerJeremy Allison <jra@samba.org>
Thu, 28 Oct 2021 18:11:28 +0000 (18:11 +0000)
commit5503bde93bddf3634b183e665773399c110251d4
tree073e504333f48f40a54612a73b2b7683ca81fc54
parente2740e4868f2a49877a86a8666d26226b5657317
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>
lib/util/tests/time.c
lib/util/time.c