1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

smbd: correctly initialize close timestamp fields

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14714

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon May 24 16:56:22 UTC 2021 on sn-devel-184
This commit is contained in:
Ralph Boehme 2021-05-24 12:03:28 +02:00 committed by Jeremy Allison
parent ac9042ff4d
commit f96cc29711
2 changed files with 4 additions and 5 deletions

View File

@ -1 +0,0 @@
^samba3.smb2.timestamps.test_close_not_attrib.*

View File

@ -228,10 +228,10 @@ static NTSTATUS smbd_smb2_close(struct smbd_smb2_request *req,
uint16_t flags = 0;
bool posix_open = false;
ZERO_STRUCTP(out_creation_ts);
ZERO_STRUCTP(out_last_access_ts);
ZERO_STRUCTP(out_last_write_ts);
ZERO_STRUCTP(out_change_ts);
*out_creation_ts = (struct timespec){0, SAMBA_UTIME_OMIT};
*out_last_access_ts = (struct timespec){0, SAMBA_UTIME_OMIT};
*out_last_write_ts = (struct timespec){0, SAMBA_UTIME_OMIT};
*out_change_ts = (struct timespec){0, SAMBA_UTIME_OMIT};
*out_flags = 0;
*out_allocation_size = 0;