From: Volker Lendecke Date: Fri, 19 Dec 2025 13:27:41 +0000 (+0100) Subject: smbd: Make reference_smb_fname_fsp_link() static X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;p=thirdparty%2Fsamba.git smbd: Make reference_smb_fname_fsp_link() static Only referenced in files.c Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S Autobuild-User(master): Anoop C S Autobuild-Date(master): Mon Aug 3 10:08:42 UTC 2026 on atb-devel-224 --- diff --git a/source3/smbd/files.c b/source3/smbd/files.c index d626ac5f32e..03e99c14c3f 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -1793,8 +1793,9 @@ static int fsp_ref_no_close_destructor(struct smb_filename *smb_fname) return 0; } -NTSTATUS reference_smb_fname_fsp_link(struct smb_filename *smb_fname_dst, - const struct smb_filename *smb_fname_src) +static NTSTATUS reference_smb_fname_fsp_link( + struct smb_filename *smb_fname_dst, + const struct smb_filename *smb_fname_src) { bool ok; diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 3bb309e463b..7ced3a3ffd5 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -414,9 +414,6 @@ void smb_fname_fsp_unlink(struct smb_filename *smb_fname); NTSTATUS move_smb_fname_fsp_link(struct smb_filename *smb_fname_dst, struct smb_filename *smb_fname_src); -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, const struct files_struct *dirfsp, const char *base_name,