svn commit: samba r7931 - in branches/SAMBA_4_0/source/ntvfs/cifs: .

tridge at samba.org tridge at samba.org
Sun Jun 26 11:34:34 GMT 2005


Author: tridge
Date: 2005-06-26 11:34:34 +0000 (Sun, 26 Jun 2005)
New Revision: 7931

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7931

Log:
fixed a bug in the cifs backend found with the new test code

Modified:
   branches/SAMBA_4_0/source/ntvfs/cifs/vfs_cifs.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/cifs/vfs_cifs.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/cifs/vfs_cifs.c	2005-06-26 11:34:03 UTC (rev 7930)
+++ branches/SAMBA_4_0/source/ntvfs/cifs/vfs_cifs.c	2005-06-26 11:34:34 UTC (rev 7931)
@@ -548,6 +548,17 @@
 }
 
 /*
+  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
 */
 static NTSTATUS cvfs_seek(struct ntvfs_module_context *ntvfs, 
@@ -564,7 +575,7 @@
 
 	c_req = smb_raw_seek_send(private->tree, io);
 
-	SIMPLE_ASYNC_TAIL;
+	ASYNC_RECV_TAIL(io, async_seek);
 }
 
 /*



More information about the samba-cvs mailing list