mirror of
https://github.com/samba-team/samba.git
synced 2025-08-24 21:49:29 +03:00
s4:libcli: remember return code from maximum access
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13812
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
(cherry picked from commit 9f4ee05295
)
This commit is contained in:
committed by
Karolin Seeger
parent
66a0bb5575
commit
021321f5a8
@ -1779,6 +1779,7 @@ union smb_open {
|
||||
/* uint32_t blob_size; */
|
||||
|
||||
/* optional return values matching tagged values in the call */
|
||||
uint32_t maximal_access_status;
|
||||
uint32_t maximal_access;
|
||||
uint8_t on_disk_id[32];
|
||||
struct smb2_lease lease_response;
|
||||
|
@ -360,12 +360,12 @@ NTSTATUS smb2_create_recv(struct smb2_request *req, TALLOC_CTX *mem_ctx, struct
|
||||
/* pull out the parsed blobs */
|
||||
for (i=0;i<io->out.blobs.num_blobs;i++) {
|
||||
if (strcmp(io->out.blobs.blobs[i].tag, SMB2_CREATE_TAG_MXAC) == 0) {
|
||||
/* TODO: this also contains a status field in
|
||||
first 4 bytes */
|
||||
if (io->out.blobs.blobs[i].data.length != 8) {
|
||||
smb2_request_destroy(req);
|
||||
return NT_STATUS_INVALID_NETWORK_RESPONSE;
|
||||
}
|
||||
io->out.maximal_access_status =
|
||||
IVAL(io->out.blobs.blobs[i].data.data, 0);
|
||||
io->out.maximal_access = IVAL(io->out.blobs.blobs[i].data.data, 4);
|
||||
}
|
||||
if (strcmp(io->out.blobs.blobs[i].tag, SMB2_CREATE_TAG_QFID) == 0) {
|
||||
|
Reference in New Issue
Block a user