From 470cfb34aea693cdb774b648d51ceccda130f329 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 7 May 2012 19:21:10 +1000 Subject: lib/util: Map 0x7fffffffffffffffLL as 0x7fffffffffffffffLL in time conversion TIME_T_MAX is not actually INT64_MAX at the moment, so check both values and set to the magic end-of-time value. Andrew Bartlett Autobuild-User: Andrew Bartlett Autobuild-Date: Tue May 8 06:41:43 CEST 2012 on sn-devel-104 --- lib/util/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/util/time.c b/lib/util/time.c index dc3ca68a3d..d5a429af94 100644 --- a/lib/util/time.c +++ b/lib/util/time.c @@ -148,7 +148,7 @@ _PUBLIC_ void unix_to_nt_time(NTTIME *nt, time_t t) return; } - if (t == TIME_T_MAX) { + if (t == TIME_T_MAX || t == INT64_MAX) { *nt = 0x7fffffffffffffffLL; return; } -- cgit