mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
smbd: Remove "share_access" from dup_file_fsp()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
13921645c4
commit
c56be509f1
@ -688,9 +688,12 @@ struct files_struct *file_fsp_smb2(struct smbd_smb2_request *smb2req,
|
|||||||
Duplicate the file handle part for a DOS or FCB open.
|
Duplicate the file handle part for a DOS or FCB open.
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
NTSTATUS dup_file_fsp(struct smb_request *req, files_struct *from,
|
NTSTATUS dup_file_fsp(
|
||||||
uint32_t access_mask, uint32_t share_access,
|
struct smb_request *req,
|
||||||
uint32_t create_options, files_struct *to)
|
files_struct *from,
|
||||||
|
uint32_t access_mask,
|
||||||
|
uint32_t create_options,
|
||||||
|
files_struct *to)
|
||||||
{
|
{
|
||||||
/* this can never happen for print files */
|
/* this can never happen for print files */
|
||||||
SMB_ASSERT(from->print_file == NULL);
|
SMB_ASSERT(from->print_file == NULL);
|
||||||
|
@ -406,9 +406,12 @@ struct files_struct *file_fsp_get(struct smbd_smb2_request *smb2req,
|
|||||||
struct files_struct *file_fsp_smb2(struct smbd_smb2_request *smb2req,
|
struct files_struct *file_fsp_smb2(struct smbd_smb2_request *smb2req,
|
||||||
uint64_t persistent_id,
|
uint64_t persistent_id,
|
||||||
uint64_t volatile_id);
|
uint64_t volatile_id);
|
||||||
NTSTATUS dup_file_fsp(struct smb_request *req, files_struct *from,
|
NTSTATUS dup_file_fsp(
|
||||||
uint32_t access_mask, uint32_t share_access,
|
struct smb_request *req,
|
||||||
uint32_t create_options, files_struct *to);
|
files_struct *from,
|
||||||
|
uint32_t access_mask,
|
||||||
|
uint32_t create_options,
|
||||||
|
files_struct *to);
|
||||||
NTSTATUS file_name_hash(connection_struct *conn,
|
NTSTATUS file_name_hash(connection_struct *conn,
|
||||||
const char *name, uint32_t *p_name_hash);
|
const char *name, uint32_t *p_name_hash);
|
||||||
NTSTATUS fsp_set_smb_fname(struct files_struct *fsp,
|
NTSTATUS fsp_set_smb_fname(struct files_struct *fsp,
|
||||||
|
@ -99,7 +99,6 @@ struct files_struct *fcb_or_dos_open(
|
|||||||
req,
|
req,
|
||||||
fsp,
|
fsp,
|
||||||
access_mask,
|
access_mask,
|
||||||
share_access,
|
|
||||||
create_options,
|
create_options,
|
||||||
new_fsp);
|
new_fsp);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user