From 3b386393304417d10a4ebb71c0c46d70ebde2aa4 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 9 Oct 2024 07:32:55 +0200 Subject: [PATCH] smbd: Make reopen_from_fsp() public Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- source3/smbd/open.c | 10 +++++----- source3/smbd/proto.h | 5 +++++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index a05ccb6b7f3..13751ff45e9 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -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; diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 5791d21d8b1..702756c6e31 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -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, -- 2.47.2