]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Make dirfsp param to synthetic_pathref() const
authorVolker Lendecke <vl@samba.org>
Thu, 2 Jan 2025 13:29:27 +0000 (14:29 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 23 Jan 2025 23:08:38 +0000 (23:08 +0000)
openat_pathref_fsp() only needs const

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/files.c
source3/smbd/proto.h

index 2a76e2bcc53a4aaaa65abedf5e163919152d6350..01af01628456e32e6ffe81b8804acc30da9eb5b0 100644 (file)
@@ -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,
index 49c3b319da5c123ff63bc2c1da0189f63dd5546f..6ed89b2b8e1663f92bdaeeb33edb67d39e7e10b0 100644 (file)
@@ -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,