summaryrefslogtreecommitdiffstats
path: root/source3/lib/unix_msg/tests.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2014-05-21 11:31:44 -0700
committerJeremy Allison <jra@samba.org>2014-05-23 20:16:12 +0200
commitce010d00275bb73dea509213d50eb4062312bf55 (patch)
tree852f37986119630dde7db7c107b85389c37b50e9 /source3/lib/unix_msg/tests.c
parentbe07b8bc90df27adbfa2201e5645deec1434dbbe (diff)
downloadsamba-ce010d00275bb73dea509213d50eb4062312bf55.tar.gz
samba-ce010d00275bb73dea509213d50eb4062312bf55.tar.xz
samba-ce010d00275bb73dea509213d50eb4062312bf55.zip
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. The smb2_close() code being modified already did this by hand, and so this doesn't change any of the functionality, only makes the SMB2 code match all of the other server code in Samba. 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. Not following the put_long_date_timespec() convention in the SMB2 create code caused the round_timespec() step to have been missed in that code. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
Diffstat (limited to 'source3/lib/unix_msg/tests.c')
0 files changed, 0 insertions, 0 deletions