mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
r7931: fixed a bug in the cifs backend found with the new test code
(This used to be commit 447d5fcc1bdbdeaf2d96dbcace36b480b5a18c73)
This commit is contained in:
parent
6afb06d8e1
commit
173909efd5
@ -547,6 +547,17 @@ static NTSTATUS cvfs_write(struct ntvfs_module_context *ntvfs,
|
||||
ASYNC_RECV_TAIL(wr, async_write);
|
||||
}
|
||||
|
||||
/*
|
||||
a handler for async seek replies
|
||||
*/
|
||||
static void async_seek(struct smbcli_request *c_req)
|
||||
{
|
||||
struct async_info *async = c_req->async.private;
|
||||
struct smbsrv_request *req = async->req;
|
||||
req->async_states->status = smb_raw_seek_recv(c_req, async->parms);
|
||||
req->async_states->send_fn(req);
|
||||
}
|
||||
|
||||
/*
|
||||
seek in a file
|
||||
*/
|
||||
@ -564,7 +575,7 @@ static NTSTATUS cvfs_seek(struct ntvfs_module_context *ntvfs,
|
||||
|
||||
c_req = smb_raw_seek_send(private->tree, io);
|
||||
|
||||
SIMPLE_ASYNC_TAIL;
|
||||
ASYNC_RECV_TAIL(io, async_seek);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user