summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2020-04-23 16:09:16 +0200
committerKarolin Seeger <kseeger@samba.org>2020-05-13 13:31:25 +0000
commitf8805f5db4d350ecc4b97c4ef4cc207eed18ae56 (patch)
tree3d78740bcd32eaad7e028623ca6e564922a3e066
parentf23992c09a6fb4f5647e6805e1701000ca1dffa8 (diff)
downloadsamba-f8805f5db4d350ecc4b97c4ef4cc207eed18ae56.tar.gz
smbd: make get_real_filename_full_scan() public
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14350 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (backported from commit aa5f19ddf1dec1ac4386441929bca94727f30ee6) [Conflicts: source3/smbd/proto.h: more functions are missing in 4.12]
-rw-r--r--source3/smbd/filename.c10
-rw-r--r--source3/smbd/proto.h6
2 files changed, 12 insertions, 4 deletions
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,