The only caller passes in what was used internally, so no change in
behaviour. Prepares for calling open_internal_dirfsp_at() from
filename_convert() with additional flags.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
struct smb_Dir *dir_hnd = NULL;
NTSTATUS status;
- status = open_internal_dirfsp_at(conn, conn->cwd_fsp, smb_dname, &fsp);
+ status = open_internal_dirfsp_at(conn,
+ conn->cwd_fsp,
+ smb_dname,
+ O_RDONLY,
+ &fsp);
if (!NT_STATUS_IS_OK(status)) {
return NULL;
}
NTSTATUS open_internal_dirfsp_at(connection_struct *conn,
struct files_struct *dirfsp,
const struct smb_filename *smb_dname,
+ int open_flags,
struct files_struct **_fsp)
{
struct files_struct *fsp = NULL;
- int open_flags = O_RDONLY;
NTSTATUS status;
SMB_ASSERT(dirfsp == dirfsp->conn->cwd_fsp);
NTSTATUS open_internal_dirfsp_at(connection_struct *conn,
struct files_struct *dirfsp,
const struct smb_filename *smb_dname,
+ int open_flags,
struct files_struct **_fsp);
/* The following definitions come from smbd/ipc.c */