git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e81fceb
)
applied patch from bug#140
author
Andrew Tridgell
<tridge@samba.org>
Mon, 9 Jun 2003 02:54:07 +0000
(
02:54
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Mon, 9 Jun 2003 02:54:07 +0000
(
02:54
+0000)
this fixes a timestamp problem with 64 bit machines
(This used to be commit
0ce6eddad8e148bc6d195ddefb773326339d06e6
)
source3/lib/time.c
patch
|
blob
|
history
diff --git
a/source3/lib/time.c
b/source3/lib/time.c
index f76a1bdc0d89029c3db7896d46088e958d62dff1..5309711a056ed316e3e5a6b7f184f197fd192f0a 100644
(file)
--- a/
source3/lib/time.c
+++ b/
source3/lib/time.c
@@
-308,7
+308,8
@@
time_t nt_time_to_unix(NTTIME *nt)
time_t l_time_min = TIME_T_MIN;
time_t l_time_max = TIME_T_MAX;
- if (nt->high == 0) return(0);
+ if (nt->high == 0 || (nt->high == 0xffffffff && nt->low == 0xffffffff))
+ return(0);
d = ((double)nt->high)*4.0*(double)(1<<30);
d += (nt->low&0xFFF00000);