]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Make get_real_filename_cache_key() public
authorVolker Lendecke <vl@samba.org>
Sat, 4 Nov 2023 14:41:40 +0000 (15:41 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 7 Nov 2023 12:46:37 +0000 (12:46 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/filename.c
source3/smbd/proto.h

index a37d0709d0f0f903aaef3a2336faa7d6aa59352d..552940f60d70355ce65d96f650a0d61045c82f81 100644 (file)
@@ -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);
index e684d1e00bc51741f58dfa4c7560cb3099a840d9..902caf27890ad0070346e1fdf54fcf9fbfdb32a6 100644 (file)
@@ -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,