From ca21a677ff1f8fa96136ef475c6a8287cc72da6f Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 24 Sep 2025 14:58:49 +0200 Subject: [PATCH] smbd: Remove unused parameters from rename_internals_fsp() Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- source3/smbd/proto.h | 2 -- source3/smbd/smb2_reply.c | 4 ---- source3/smbd/smb2_trans2.c | 4 ---- 3 files changed, 10 deletions(-) diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 853eb0e00b1..193981f97e1 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -944,8 +944,6 @@ NTSTATUS rename_internals_fsp(connection_struct *conn, files_struct *fsp, struct smb_filename *smb_fname_src_rel, struct share_mode_lock **lck, - struct smb_filename *smb_fname_dst_in, - const char *dst_original_lcomp, uint32_t attrs, const char *newname, bool replace_if_exists); diff --git a/source3/smbd/smb2_reply.c b/source3/smbd/smb2_reply.c index 7bf9952507a..a8bc19f0d39 100644 --- a/source3/smbd/smb2_reply.c +++ b/source3/smbd/smb2_reply.c @@ -1377,8 +1377,6 @@ NTSTATUS rename_internals_fsp(connection_struct *conn, files_struct *fsp, struct smb_filename *smb_fname_src_rel, struct share_mode_lock **_lck, - struct smb_filename *smb_fname_dst_in, - const char *dst_original_lcomp, uint32_t attrs, const char *newname, bool replace_if_exists) @@ -1778,8 +1776,6 @@ NTSTATUS rename_internals(TALLOC_CTX *ctx, fsp, smb_fname_src_rel, NULL, - smb_fname_dst, - dst_original_lcomp, attrs, newname, replace_if_exists); diff --git a/source3/smbd/smb2_trans2.c b/source3/smbd/smb2_trans2.c index 90ba94578f2..8a8831d6186 100644 --- a/source3/smbd/smb2_trans2.c +++ b/source3/smbd/smb2_trans2.c @@ -4402,8 +4402,6 @@ static NTSTATUS smb2_file_rename_information(connection_struct *conn, fsp, smb_fname_src_rel, lck, - smb_fname_dst, - dst_original_lcomp, (FILE_ATTRIBUTE_HIDDEN | FILE_ATTRIBUTE_SYSTEM), newname, @@ -4762,8 +4760,6 @@ static NTSTATUS smb_file_rename_information(connection_struct *conn, fsp, smb_fname_src_rel, NULL, - smb_fname_dst, - dst_original_lcomp, 0, newname, overwrite); -- 2.47.3