diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-05-29 19:16:26 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2008-05-29 19:16:26 +1000 |
commit | c86dc11be6e626fa81f025d7ec78226fb4249cdc (patch) | |
tree | 5816ae0640ea981cdd50d9d9f64ff74c5494b49c /source4/smb_server | |
parent | 21d770a02c1e5e492c3d764881b82cbc0871ced0 (diff) | |
download | samba-c86dc11be6e626fa81f025d7ec78226fb4249cdc.tar.gz samba-c86dc11be6e626fa81f025d7ec78226fb4249cdc.tar.bz2 samba-c86dc11be6e626fa81f025d7ec78226fb4249cdc.zip |
added support for returning the maximal access MXAC tag in SMB2 create
(This used to be commit 4eb49335d5f0319f9aa47ded5215a2977d3336bf)
Diffstat (limited to 'source4/smb_server')
-rw-r--r-- | source4/smb_server/smb2/fileio.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source4/smb_server/smb2/fileio.c b/source4/smb_server/smb2/fileio.c index 086ddc690e..2c322ea587 100644 --- a/source4/smb_server/smb2/fileio.c +++ b/source4/smb_server/smb2/fileio.c @@ -36,6 +36,18 @@ static void smb2srv_create_send(struct ntvfs_request *ntvfs) DATA_BLOB blob; SMB2SRV_CHECK_ASYNC_STATUS(io, union smb_open); + + /* setup the blobs we should give in the reply */ + if (io->smb2.out.maximal_access != 0) { + uint32_t data[2]; + SIVAL(data, 0, 0); + SIVAL(data, 4, io->smb2.out.maximal_access); + SMB2SRV_CHECK(smb2_create_blob_add(req, &io->smb2.out.blobs, + SMB2_CREATE_TAG_MXAC, + data_blob_const(data, 8))); + } + + SMB2SRV_CHECK(smb2_create_blob_push(req, &blob, io->smb2.out.blobs)); SMB2SRV_CHECK(smb2srv_setup_reply(req, 0x58, true, blob.length)); |