s3: smb2: Move from using SBVAL to put NTTIMEs on the wire to put_long_date_timespec.
commitf739480862373444e9cc8e3790dc052a7ecb271e
authorJeremy Allison <jra@samba.org>
Wed, 21 May 2014 18:57:16 +0000 (21 11:57 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 23 May 2014 18:16:12 +0000 (23 20:16 +0200)
tree6846f39e305cbb5d1b35e86b92dd36e3e557ebb3
parentce010d00275bb73dea509213d50eb4062312bf55
s3: smb2: Move from using SBVAL to put NTTIMEs on the wire to put_long_date_timespec.

put_long_date_timespec() correctly calls round_timespec()
on the time parameters, and is the correct function to
use when writing *any* file-based NTTIME on the wire.

Move from using NTTIME variables internally
in the server to struct timespec variables, which is
what all the other server code uses. Only map to
NTTIME as the last step of marshalling the output
data.

The previous SMB2 create code missed the round_timespec()
call before marshalling.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
source3/smbd/smb2_create.c