From: Ralph Boehme Date: Thu, 23 Apr 2020 14:09:16 +0000 (+0200) Subject: smbd: make get_real_filename_full_scan() public X-Git-Tag: samba-4.11.10~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8805f5db4d350ecc4b97c4ef4cc207eed18ae56;p=thirdparty%2Fsamba.git 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 (backported from commit aa5f19ddf1dec1ac4386441929bca94727f30ee6) [Conflicts: source3/smbd/proto.h: more functions are missing in 4.12] --- diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index 5a3b8cc2ebf..0695198e286 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -1449,10 +1449,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 10ffaf6e480..6e2509e7c57 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -357,6 +357,12 @@ NTSTATUS check_name(connection_struct *conn, int get_real_filename(connection_struct *conn, const char *path, 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); NTSTATUS filename_convert(TALLOC_CTX *mem_ctx, connection_struct *conn, const char *name_in,