]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Remove unused arguments from dup_file_fsp()
authorVolker Lendecke <vl@samba.org>
Sat, 23 Apr 2022 12:01:33 +0000 (14:01 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 26 Apr 2022 21:41:29 +0000 (21:41 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/files.c
source3/smbd/proto.h
source3/smbd/smb1_utils.c

index 2e513dd6299aa2237bb2769c1ca9a597c8fa46b1..0c82de8b48cac77516cd2df87e0e93a0838875b6 100644 (file)
@@ -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;
index 9510f70529d96b5782870126b6df7c45a52de311..b78111c25c26d8721468648c494d662d9e51ee95 100644 (file)
@@ -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);
index a5ac28c584ab8cf4cb7605efe50545a05636cb98..15afc3f5ef9cb0899a9af985d29a4f232b81a730 100644 (file)
@@ -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));