From: Volker Lendecke Date: Sat, 23 Apr 2022 12:01:33 +0000 (+0200) Subject: smbd: Remove unused arguments from dup_file_fsp() X-Git-Tag: talloc-2.3.4~336 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2eee5c5b3179315c12c7ed2b509c43f636c19e3;p=thirdparty%2Fsamba.git smbd: Remove unused arguments from dup_file_fsp() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 2e513dd6299..0c82de8b48c 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -1361,10 +1361,8 @@ struct files_struct *file_fsp_smb2(struct smbd_smb2_request *smb2req, ****************************************************************************/ NTSTATUS dup_file_fsp( - struct smb_request *req, files_struct *from, uint32_t access_mask, - uint32_t create_options, files_struct *to) { size_t new_refcount; diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 9510f70529d..b78111c25c2 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -416,10 +416,8 @@ struct files_struct *file_fsp_smb2(struct smbd_smb2_request *smb2req, uint64_t persistent_id, uint64_t volatile_id); NTSTATUS dup_file_fsp( - struct smb_request *req, files_struct *from, uint32_t access_mask, - uint32_t create_options, files_struct *to); NTSTATUS file_name_hash(connection_struct *conn, const char *name, uint32_t *p_name_hash); diff --git a/source3/smbd/smb1_utils.c b/source3/smbd/smb1_utils.c index a5ac28c584a..15afc3f5ef9 100644 --- a/source3/smbd/smb1_utils.c +++ b/source3/smbd/smb1_utils.c @@ -97,12 +97,7 @@ struct files_struct *fcb_or_dos_open( return NULL; } - status = dup_file_fsp( - req, - fsp, - access_mask, - create_options, - new_fsp); + status = dup_file_fsp(fsp, access_mask, new_fsp); if (!NT_STATUS_IS_OK(status)) { DBG_DEBUG("dup_file_fsp failed: %s\n", nt_errstr(status));