]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Make reopen_from_fsp() public
authorVolker Lendecke <vl@samba.org>
Wed, 9 Oct 2024 05:32:55 +0000 (07:32 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 12 Nov 2024 12:09:35 +0000 (12:09 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/open.c
source3/smbd/proto.h

index a05ccb6b7f3021efae7fffeb74ec857b91662387..13751ff45e90266564c4c7edd18cfdbc4bf691b1 100644 (file)
@@ -1153,11 +1153,11 @@ static NTSTATUS fd_open_atomic(struct files_struct *dirfsp,
        return status;
 }
 
-static NTSTATUS reopen_from_fsp(struct files_struct *dirfsp,
-                               struct smb_filename *smb_fname,
-                               struct files_struct *fsp,
-                               const struct vfs_open_how *how,
-                               bool *p_file_created)
+NTSTATUS reopen_from_fsp(struct files_struct *dirfsp,
+                        struct smb_filename *smb_fname,
+                        struct files_struct *fsp,
+                        const struct vfs_open_how *how,
+                        bool *p_file_created)
 {
        NTSTATUS status;
        int old_fd;
index 5791d21d8b1a84a856ae002eb3a3780a7e24051e..702756c6e312665cac367d6fc61c368c7d7d5a56 100644 (file)
@@ -669,6 +669,11 @@ NTSTATUS fd_openat(const struct files_struct *dirfsp,
                   files_struct *fsp,
                   const struct vfs_open_how *how);
 NTSTATUS fd_close(files_struct *fsp);
+NTSTATUS reopen_from_fsp(struct files_struct *dirfsp,
+                        struct smb_filename *smb_fname,
+                        struct files_struct *fsp,
+                        const struct vfs_open_how *how,
+                        bool *p_file_created);
 bool is_oplock_stat_open(uint32_t access_mask);
 bool is_lease_stat_open(uint32_t access_mask);
 NTSTATUS send_break_message(struct messaging_context *msg_ctx,