Get Samba version or capability information from Windows
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 22 Jan 2008 10:33:17 +0000 (11:33 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 22 Jan 2008 11:39:47 +0000 (12:39 +0100)
commit28aa1c199d3a22cda34afcaab49c0561eeb0abcb
treec3e15689094998a791f4f3283e437eff8ff36d9e
parente9bb3d5067b74a29beb778f85687829778e42b5b
Get Samba version or capability information from Windows

On Jan 21 16:18, Danilo Almeida wrote:
> Corina wrote:
>
> > + time_t samba_gitcommitdate;
>
> And:
>
> > +   SIVAL(pdata,28,extended_info.samba_gitcommitdate);
> > +   memcpy(pdata+32,extended_info.samba_version_string,32);
>
> Note that you are dropping bits on a system w/64-bit time_t, and that this has the 2038 problem.

Right.  I changed samba_gitcommitdate from time_t to NTTIME and shortened
samba_version_string to 28 bytes.  New patch below.

Thanks,
Corinna
source/include/smb.h
source/lib/version.c
source/smbd/trans2.c