struct timeval request_time;
struct file_id id;
struct deferred_open_record *open_rec;
+ struct files_struct *dirfsp;
files_struct *result;
bool replay_operation;
uint8_t in_oplock_level;
struct smbd_smb2_create_state *state = NULL;
NTSTATUS status;
struct smb_request *smb1req = NULL;
- struct files_struct *dirfsp = NULL;
struct smb_filename *smb_fname = NULL;
uint32_t ucf_flags;
bool is_dfs = false;
state->fname,
ucf_flags,
state->twrp_time,
- &dirfsp,
+ &state->dirfsp,
&smb_fname);
if (tevent_req_nterror(req, status)) {
return tevent_req_post(req, state->ev);
status = SMB_VFS_CREATE_FILE(smb1req->conn,
smb1req,
- dirfsp,
+ state->dirfsp,
smb_fname,
in_desired_access,
in_share_access,
DATA_BLOB blob = data_blob_const(p, sizeof(p));
status = smbd_calculate_access_mask_fsp(
- conn->cwd_fsp,
+ state->dirfsp,
state->result,
false,
SEC_FLAG_MAXIMUM_ALLOWED,