1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

libsmb: Return [MS-SMB2] 2.2.14 SMB2 CREATE Response flags field

Not used yet, mostly for completeness.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Volker Lendecke 2023-02-14 20:44:16 +01:00
parent 86868cb045
commit 03b552323b
2 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,7 @@ struct smb2_create_blobs {
struct smb_create_returns { struct smb_create_returns {
uint8_t oplock_level; uint8_t oplock_level;
uint8_t flags;
uint32_t create_action; uint32_t create_action;
NTTIME creation_time; NTTIME creation_time;
NTTIME last_access_time; NTTIME last_access_time;

View File

@ -429,6 +429,7 @@ static void smb2cli_create_done(struct tevent_req *subreq)
body = (uint8_t *)iov[1].iov_base; body = (uint8_t *)iov[1].iov_base;
state->cr.oplock_level = CVAL(body, 2); state->cr.oplock_level = CVAL(body, 2);
state->cr.flags = CVAL(body, 3);
state->cr.create_action = IVAL(body, 4); state->cr.create_action = IVAL(body, 4);
state->cr.creation_time = BVAL(body, 8); state->cr.creation_time = BVAL(body, 8);
state->cr.last_access_time = BVAL(body, 16); state->cr.last_access_time = BVAL(body, 16);