From a52a6f1c425335a4154fcd0d8f1c45f6e387ce53 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 5 Mar 2005 22:50:13 +0000 Subject: r5666: winxp will use a NTTIME of -1 to mean "don't change" in setfileinfo basic_info. Add null_nttime() as the equivalent of the existing null_time() call for cheecking for valid NTTIME values (This used to be commit 439ce2efbf7d2ba9b17d6b4bfaf651e781140715) --- source4/lib/time.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source4/lib') diff --git a/source4/lib/time.c b/source4/lib/time.c index 67397e953a..7b371f58dd 100644 --- a/source4/lib/time.c +++ b/source4/lib/time.c @@ -112,6 +112,15 @@ BOOL null_time(time_t t) t == (time_t)-1; } + +/**************************************************************************** +check if it's a null NTTIME +****************************************************************************/ +BOOL null_nttime(NTTIME t) +{ + return t == 0 || t == (NTTIME)-1; +} + /******************************************************************* create a 16 bit dos packed date ********************************************************************/ -- cgit