summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/time.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/lib/time.c b/source3/lib/time.c
index 12643b0522..88be3fa334 100644
--- a/source3/lib/time.c
+++ b/source3/lib/time.c
@@ -596,3 +596,12 @@ time_t get_create_time(SMB_STRUCT_STAT *st,BOOL fake_dirs)
return ret;
}
+/****************************************************************************
+initialise an NTTIME to -1, which means "unknown" or "don't expire"
+****************************************************************************/
+
+void init_nt_time(NTTIME *nt)
+{
+ nt->high = 0x7FFFFFFF;
+ nt->low = 0xFFFFFFFF;
+}