Jelmer Vernooij jelmer at
Sun Apr 18 18:14:59 MDT 2010

Hi Matthieu,

On Wed, 2010-04-14 at 08:48 +0400, Matthieu Patou wrote:
> I have the impression that the return of the py_unix2nttime should be 
> constructing the PyLong not from a long (which on my pc is 4 bytes, but 
> from long long. With something like this.
> -       return PyInt_FromLong((uint64_t)nt);
> +       return PyLong_FromLongLong((uint64_t)nt);
> I'm saying so because if I try then to inject the integer into 
> nt_time_string I get some dates in 2038 ... but if I do in the C binding :
> unix_to_nt_time(&nt2,1271196977) + a call to nt_time_string I get 
> something sensible.
Any updates on those patches?



More information about the samba-technical mailing list