struct smb_vfs_call_getxattrat_state {
+ files_struct *dir_fsp;
ssize_t (*recv_fn)(struct tevent_req *req,
struct vfs_aio_state *aio_state,
TALLOC_CTX *mem_ctx,
VFS_FIND(getxattrat_send);
*state = (struct smb_vfs_call_getxattrat_state) {
+ .dir_fsp = dir_fsp,
.recv_fn = handle->fns->getxattrat_recv_fn,
};
subreq, struct tevent_req);
struct smb_vfs_call_getxattrat_state *state = tevent_req_data(
req, struct smb_vfs_call_getxattrat_state);
+ bool ok;
+
+ /*
+ * Make sure we run as the user again
+ */
+ ok = change_to_user_by_fsp(state->dir_fsp);
+ SMB_ASSERT(ok);
state->retval = state->recv_fn(subreq,
&state->aio_state,