git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
0678eb6
)
lib/util: Map 0x7fffffffffffffffLL as 0x7fffffffffffffffLL in time conversion
author
Andrew Bartlett
<abartlet@samba.org>
Mon, 7 May 2012 09:21:10 +0000
(19:21 +1000)
committer
Andrew Bartlett
<abartlet@samba.org>
Tue, 8 May 2012 04:41:43 +0000
(06:41 +0200)
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 <abartlet@samba.org>
Autobuild-Date: Tue May 8 06:41:43 CEST 2012 on sn-devel-104
lib/util/time.c
patch
|
blob
|
history
diff --git
a/lib/util/time.c
b/lib/util/time.c
index dc3ca68a3d610d0e6d2870d65867f2e67d3dce83..d5a429af9408af6b25cf1ec79a0ac6fe09c49324 100644
(file)
--- 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;
}