s3/smbd: sticky write time offset miscalculation causes broken timestamps
authorRalph Boehme <slow@samba.org>
Fri, 8 Sep 2017 10:19:03 +0000 (12:19 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 12 Sep 2017 00:45:46 +0000 (02:45 +0200)
commit7e0b2af4c0c429a3d347ace7b2f75cfeecea6d1f
tree552bcb8fb5dc1ab7faaf19263855e77f57a0e3f4
parent87f7d32a906799e83cb9b023978e689a630de017
s3/smbd: sticky write time offset miscalculation causes broken timestamps

The offset calculation for the offset that got passed to
fetch_write_time_send() in the enumeration loop was wrong as it passed
the offset before smbd_dirptr_lanman2_entry() added required padding.

This resulted in broken timestamps in the find response.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13024

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Tue Sep 12 02:45:46 CEST 2017 on sn-devel-144
source3/smbd/smb2_query_directory.c