From: Ralph Boehme Date: Thu, 29 Oct 2020 17:30:19 +0000 (+0100) Subject: smbd: un-const smb_fname_dst_in arg of rename_internals_fsp() X-Git-Tag: samba-4.14.0rc1~295 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ea2def330b18d8bfc28f52c80a530a95ba7bd89d;p=thirdparty%2Fsamba.git smbd: un-const smb_fname_dst_in arg of rename_internals_fsp() A subsequent commit is going to modify smb_fname_dst_in. Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 32bff0a6c30..7a08782dfa3 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -1024,7 +1024,7 @@ void reply_mkdir(struct smb_request *req); void reply_rmdir(struct smb_request *req); NTSTATUS rename_internals_fsp(connection_struct *conn, files_struct *fsp, - const struct smb_filename *smb_fname_dst_in, + struct smb_filename *smb_fname_dst_in, const char *dst_original_lcomp, uint32_t attrs, bool replace_if_exists); diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 5f7be3727ac..e5d883bd351 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -7544,7 +7544,7 @@ static NTSTATUS parent_dirname_compatible_open(connection_struct *conn, NTSTATUS rename_internals_fsp(connection_struct *conn, files_struct *fsp, - const struct smb_filename *smb_fname_dst_in, + struct smb_filename *smb_fname_dst_in, const char *dst_original_lcomp, uint32_t attrs, bool replace_if_exists)