struct tevent_req *cli_smb2_close_fnum_send(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
struct cli_state *cli,
- uint16_t fnum)
+ uint16_t fnum,
+ uint16_t flags)
{
struct tevent_req *req, *subreq;
struct cli_smb2_close_fnum_state *state;
return tevent_req_post(req, ev);
}
- subreq = smb2cli_close_send(state, ev, cli->conn, cli->timeout,
- cli->smb2.session, cli->smb2.tcon,
- 0, state->ph->fid_persistent,
+ subreq = smb2cli_close_send(state,
+ ev,
+ cli->conn,
+ cli->timeout,
+ cli->smb2.session,
+ cli->smb2.tcon,
+ flags,
+ state->ph->fid_persistent,
state->ph->fid_volatile);
if (tevent_req_nomem(subreq, req)) {
return tevent_req_post(req, ev);
if (ev == NULL) {
goto fail;
}
- req = cli_smb2_close_fnum_send(frame, ev, cli, fnum);
+ req = cli_smb2_close_fnum_send(frame, ev, cli, fnum, 0);
if (req == NULL) {
goto fail;
}
return;
}
- subreq = cli_smb2_close_fnum_send(state, state->ev, state->cli, fnum);
+ subreq =
+ cli_smb2_close_fnum_send(state, state->ev, state->cli, fnum, 0);
if (tevent_req_nomem(subreq, req)) {
return;
}
* Close the fd even if the set_disp failed
*/
- subreq = cli_smb2_close_fnum_send(
- state, state->ev, state->cli, state->fnum);
+ subreq = cli_smb2_close_fnum_send(state,
+ state->ev,
+ state->cli,
+ state->fnum,
+ 0);
if (tevent_req_nomem(subreq, req)) {
return;
}
return;
}
- subreq = cli_smb2_close_fnum_send(state, state->ev, state->cli, fnum);
+ subreq =
+ cli_smb2_close_fnum_send(state, state->ev, state->cli, fnum, 0);
if (tevent_req_nomem(subreq, req)) {
return;
}
return;
}
- subreq = cli_smb2_close_fnum_send(state, state->ev, state->cli, fnum);
+ subreq =
+ cli_smb2_close_fnum_send(state, state->ev, state->cli, fnum, 0);
if (tevent_req_nomem(subreq, req)) {
return;
}
TALLOC_FREE(response);
- subreq = cli_smb2_close_fnum_send(
- state, state->ev, state->cli, state->fnum);
+ subreq = cli_smb2_close_fnum_send(state,
+ state->ev,
+ state->cli,
+ state->fnum,
+ 0);
if (tevent_req_nomem(subreq, req)) {
return;
}
subreq = cli_smb2_close_fnum_send(state,
state->ev,
state->cli,
- state->fnum);
+ state->fnum,
+ 0);
if (tevent_req_nomem(subreq, req)) {
return;
}
state->mxac = IVAL(mxac_blob->data.data, 4);
close:
- subreq = cli_smb2_close_fnum_send(
- state, state->ev, state->cli, state->fnum);
+ subreq = cli_smb2_close_fnum_send(state,
+ state->ev,
+ state->cli,
+ state->fnum,
+ 0);
if (tevent_req_nomem(subreq, req)) {
return;
}
state->rename_status = cli_smb2_rename_fnum_recv(subreq);
TALLOC_FREE(subreq);
- subreq = cli_smb2_close_fnum_send(
- state, state->ev, state->cli, state->fnum);
+ subreq = cli_smb2_close_fnum_send(state,
+ state->ev,
+ state->cli,
+ state->fnum,
+ 0);
if (tevent_req_nomem(subreq, req)) {
return;
}
/* ignore error here, we need to close the file */
- subreq = cli_smb2_close_fnum_send(
- state, state->ev, state->cli, state->fnum_src);
+ subreq = cli_smb2_close_fnum_send(state,
+ state->ev,
+ state->cli,
+ state->fnum_src,
+ 0);
if (tevent_req_nomem(subreq, req)) {
return;
}
}
if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) {
- subreq = cli_smb2_close_fnum_send(state,
- ev,
- cli,
- fnum);
+ subreq = cli_smb2_close_fnum_send(state, ev, cli, fnum, 0);
if (tevent_req_nomem(subreq, req)) {
return tevent_req_post(req, ev);
}