]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Make get_real_filename_full_scan_at() static
authorVolker Lendecke <vl@samba.org>
Mon, 27 Oct 2025 11:26:27 +0000 (12:26 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 10 Nov 2025 13:29:30 +0000 (13:29 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/smbd/filename.c
source3/smbd/proto.h

index ec2f65553b61df87c55b0ac3af6e376e2fcbdc45..cb3b7da45a1ad7ce49fd85469a6080cfd78740d2 100644 (file)
@@ -269,11 +269,11 @@ static bool sname_equal(const char *name1, const char *name2,
  If the name looks like a mangled name then try via the mangling functions
 ****************************************************************************/
 
-NTSTATUS get_real_filename_full_scan_at(struct files_struct *dirfsp,
-                                       const char *name,
-                                       bool mangled,
-                                       TALLOC_CTX *mem_ctx,
-                                       char **found_name)
+static NTSTATUS get_real_filename_full_scan_at(struct files_struct *dirfsp,
+                                              const char *name,
+                                              bool mangled,
+                                              TALLOC_CTX *mem_ctx,
+                                              char **found_name)
 {
        struct connection_struct *conn = dirfsp->conn;
        struct smb_Dir *cur_dir = NULL;
index 5e7677d347ffa73b864952a0c4fed7b584fa8a98..bd4b9d5116eef489e8ec51e49681f5d1ee5caf9d 100644 (file)
@@ -304,11 +304,6 @@ uint32_t filename_create_ucf_flags(struct smb_request *req,
 NTSTATUS canonicalize_snapshot_path(struct smb_filename *smb_fname,
                                    uint32_t ucf_flags,
                                    NTTIME twrp);
-NTSTATUS get_real_filename_full_scan_at(struct files_struct *dirfsp,
-                                       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,