1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

smbd: Make reopen_from_fsp() public

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Volker Lendecke 2024-10-09 07:32:55 +02:00 committed by Ralph Boehme
parent 45f50eee06
commit 3b38639330
2 changed files with 10 additions and 5 deletions

View 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;

View 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,