diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-06-09 02:54:07 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-06-09 02:54:07 +0000 |
commit | 0ce6eddad8e148bc6d195ddefb773326339d06e6 (patch) | |
tree | dadb48a3ca82350efc907cb20eae5ffa4d714997 /source/lib/time.c | |
parent | da96b96a1b683bd534bd1e4ff57898bb2cbe8b77 (diff) | |
download | samba-0ce6eddad8e148bc6d195ddefb773326339d06e6.tar.gz samba-0ce6eddad8e148bc6d195ddefb773326339d06e6.tar.xz samba-0ce6eddad8e148bc6d195ddefb773326339d06e6.zip |
applied patch from bug#140
this fixes a timestamp problem with 64 bit machines
Diffstat (limited to 'source/lib/time.c')
-rw-r--r-- | source/lib/time.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/lib/time.c b/source/lib/time.c index f76a1bdc0d8..5309711a056 100644 --- a/source/lib/time.c +++ b/source/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); |