From: Volker Lendecke Date: Thu, 2 Jan 2025 13:29:27 +0000 (+0100) Subject: smbd: Make dirfsp param to synthetic_pathref() const X-Git-Tag: tdb-1.4.13~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab121447a51dd0c3892f472ebb8366cc633e0959;p=thirdparty%2Fsamba.git smbd: Make dirfsp param to synthetic_pathref() const openat_pathref_fsp() only needs const Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 2a76e2bcc53..01af0162845 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -1741,7 +1741,7 @@ NTSTATUS reference_smb_fname_fsp_link(struct smb_filename *smb_fname_dst, * Create an smb_fname and open smb_fname->fsp pathref **/ NTSTATUS synthetic_pathref(TALLOC_CTX *mem_ctx, - struct files_struct *dirfsp, + const struct files_struct *dirfsp, const char *base_name, const char *stream_name, const SMB_STRUCT_STAT *psbuf, diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 49c3b319da5..6ed89b2b8e1 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -412,7 +412,7 @@ NTSTATUS reference_smb_fname_fsp_link(struct smb_filename *smb_fname_dst, const struct smb_filename *smb_fname_src); NTSTATUS synthetic_pathref(TALLOC_CTX *mem_ctx, - struct files_struct *dirfsp, + const struct files_struct *dirfsp, const char *base_name, const char *stream_name, const SMB_STRUCT_STAT *psbuf,