smbd: make get_real_filename_full_scan() public
authorRalph Boehme <slow@samba.org>
Thu, 23 Apr 2020 14:09:16 +0000 (16:09 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 6 May 2020 10:18:38 +0000 (10:18 +0000)
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>
source3/smbd/filename.c
source3/smbd/proto.h

index daa4d9c3faa1ec4c9a0711360419035d3a433872..1c5c57c70e29214e5d0dcfc5f183a633eea808a5 100644 (file)
@@ -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;
index d34a7284796306d1c032deeb5b9d73633edae7c9..98eb2843c0702c9c6e6f6f1c11ca4d5e85e742c9 100644 (file)
@@ -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,