From aa5f19ddf1dec1ac4386441929bca94727f30ee6 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 23 Apr 2020 16:09:16 +0200 Subject: [PATCH] smbd: make get_real_filename_full_scan() public BUG: https://bugzilla.samba.org/show_bug.cgi?id=14350 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/smbd/filename.c | 10 ++++++---- source3/smbd/proto.h | 6 ++++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index daa4d9c3faa..1c5c57c70e2 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -1555,10 +1555,12 @@ static bool sname_equal(const char *name1, const char *name2, If the name looks like a mangled name then try via the mangling functions ****************************************************************************/ -static int get_real_filename_full_scan(connection_struct *conn, - const char *path, const char *name, - bool mangled, - TALLOC_CTX *mem_ctx, char **found_name) +int get_real_filename_full_scan(connection_struct *conn, + const char *path, + const char *name, + bool mangled, + TALLOC_CTX *mem_ctx, + char **found_name) { struct smb_Dir *cur_dir; const char *dname = NULL; diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index d34a7284796..98eb2843c07 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -375,6 +375,12 @@ int get_real_filename(connection_struct *conn, const char *name, TALLOC_CTX *mem_ctx, char **found_name); +int get_real_filename_full_scan(connection_struct *conn, + const char *path, + const char *name, + bool mangled, + TALLOC_CTX *mem_ctx, + char **found_name); char *get_original_lcomp(TALLOC_CTX *ctx, connection_struct *conn, const char *filename_in, -- 2.34.1