fsp->conn = conn;
fsp->fh->fd = -1;
fsp->vuid = smb_req->vuid;
- fsp->can_lock = false;
+ fsp->fsp_flags.can_lock = false;
fsp->access_mask = FILE_READ_DATA | FILE_WRITE_DATA;
- smb_fname = synthetic_smb_fname(talloc_tos(), name, NULL, NULL, 0);
+ smb_fname = synthetic_smb_fname(talloc_tos(),
+ name,
+ NULL,
+ NULL,
+ 0,
+ 0);
if (smb_fname == NULL) {
file_free(smb_req, fsp);
return NT_STATUS_NO_MEMORY;
conn->sconn->remote_address,
conn->sconn->local_address,
conn->session_info,
- smb_req->ev_ctx,
+ conn->sconn->ev_ctx,
conn->sconn->msg_ctx,
+ conn->sconn->dce_ctx,
&fsp->fake_file_handle);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(10, ("np_open(%s) returned %s\n", name,
DEBUG(6, ("reply_pipe_write: %s, name: %s len: %d\n", fsp_fnum_dbg(fsp),
fsp_str_dbg(fsp), (int)state->numtowrite));
- subreq = np_write_send(state, req->ev_ctx,
+ subreq = np_write_send(state, req->sconn->ev_ctx,
fsp->fake_file_handle, data, state->numtowrite);
if (subreq == NULL) {
TALLOC_FREE(state);
state->numtowrite -= 2;
}
- subreq = np_write_send(state, req->ev_ctx,
+ subreq = np_write_send(state, req->sconn->ev_ctx,
fsp->fake_file_handle, data, state->numtowrite);
if (subreq == NULL) {
TALLOC_FREE(state);
state->outbuf = req->outbuf;
req->outbuf = NULL;
- subreq = np_read_send(state, req->ev_ctx,
+ subreq = np_read_send(state, req->sconn->ev_ctx,
fsp->fake_file_handle, data,
state->smb_maxcnt);
if (subreq == NULL) {