From 173909efd5dd475d5951a98d753fdb6186b66ffb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 26 Jun 2005 11:34:34 +0000 Subject: r7931: fixed a bug in the cifs backend found with the new test code (This used to be commit 447d5fcc1bdbdeaf2d96dbcace36b480b5a18c73) --- source4/ntvfs/cifs/vfs_cifs.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'source4/ntvfs') diff --git a/source4/ntvfs/cifs/vfs_cifs.c b/source4/ntvfs/cifs/vfs_cifs.c index e283e12f24..f263299cd7 100644 --- a/source4/ntvfs/cifs/vfs_cifs.c +++ b/source4/ntvfs/cifs/vfs_cifs.c @@ -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); } /* -- cgit