From: Jeremy Allison Date: Wed, 3 Aug 2022 16:27:37 +0000 (-0700) Subject: s3: smbd: Remove const from name_in parameter to filename_convert_smb1_search_path(). X-Git-Tag: samba-4.17.0rc1~85 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2ad3e63fe02e6ca3ff4d5b70b0f3795e8cd414ba;p=thirdparty%2Fsamba.git s3: smbd: Remove const from name_in parameter to filename_convert_smb1_search_path(). We're going to need to convert in place if it's an MSDFS path with an SMB1 @GMT token. Signed-off-by: Jeremy Allison Reviewed-by: Volker Lendecke --- diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index 4d5428c33ca..3a7ec585435 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -2161,7 +2161,7 @@ static char *strip_gmt_from_raw_dfs(TALLOC_CTX *ctx, NTSTATUS filename_convert_smb1_search_path(TALLOC_CTX *ctx, connection_struct *conn, - const char *name_in, + char *name_in, uint32_t ucf_flags, struct smb_filename **_smb_fname_out, char **_mask_out) diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 21eb32a9388..5aa690062f7 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -383,7 +383,7 @@ NTSTATUS filename_convert(TALLOC_CTX *mem_ctx, struct smb_filename **pp_smb_fname); NTSTATUS filename_convert_smb1_search_path(TALLOC_CTX *ctx, connection_struct *conn, - const char *name_in, + char *name_in, uint32_t ucf_flags, struct smb_filename **_smb_fname_out, char **_mask_out);