From ab56379c22702d364b0b55fe993e407739b6af91 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 4 Nov 2023 15:41:40 +0100 Subject: [PATCH] smbd: Make get_real_filename_cache_key() public Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- source3/smbd/filename.c | 9 ++++----- source3/smbd/proto.h | 4 ++++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index a37d0709d0f..552940f60d7 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -414,11 +414,10 @@ NTSTATUS get_real_filename_at(struct files_struct *dirfsp, * vfs_stat() the last component. This will be taken care of by an * attempt to do a openat_pathref_fsp(). */ -static bool get_real_filename_cache_key( - TALLOC_CTX *mem_ctx, - struct files_struct *dirfsp, - const char *name, - DATA_BLOB *_key) +bool get_real_filename_cache_key(TALLOC_CTX *mem_ctx, + struct files_struct *dirfsp, + const char *name, + DATA_BLOB *_key) { struct file_id fid = vfs_file_id_from_sbuf( dirfsp->conn, &dirfsp->fsp_name->st); diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index e684d1e00bc..902caf27890 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -339,6 +339,10 @@ NTSTATUS get_real_filename_full_scan_at(struct files_struct *dirfsp, bool mangled, TALLOC_CTX *mem_ctx, char **found_name); +bool get_real_filename_cache_key(TALLOC_CTX *mem_ctx, + struct files_struct *dirfsp, + const char *name, + DATA_BLOB *_key); char *get_original_lcomp(TALLOC_CTX *ctx, connection_struct *conn, const char *filename_in, -- 2.47.3