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

metze at samba.org metze at samba.org
Sun May 21 08:29:58 GMT 2006


Author: metze
Date: 2006-05-21 08:29:56 +0000 (Sun, 21 May 2006)
New Revision: 15768

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

Log:
make it possible that the caller of the ntvfs_subsystem doesn't
provide handle callbacks

metze
Modified:
   branches/SAMBA_4_0/source/ntvfs/ntvfs_util.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/ntvfs_util.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/ntvfs_util.c	2006-05-21 08:24:11 UTC (rev 15767)
+++ branches/SAMBA_4_0/source/ntvfs/ntvfs_util.c	2006-05-21 08:29:56 UTC (rev 15768)
@@ -103,6 +103,9 @@
 				   struct ntvfs_request *req,
 				   struct ntvfs_handle **h)
 {
+	if (!ntvfs->ctx->handles.create_new) {
+		return NT_STATUS_NOT_IMPLEMENTED;
+	}
 	return ntvfs->ctx->handles.create_new(ntvfs->ctx->handles.private_data, req, h);
 }
 
@@ -171,6 +174,9 @@
 							      struct ntvfs_request *req,
 							      const DATA_BLOB *key)
 {
+	if (!ntvfs->ctx->handles.search_by_wire_key) {
+		return NULL;
+	}
 	return ntvfs->ctx->handles.search_by_wire_key(ntvfs->ctx->handles.private_data, req, key);
 }
 



More information about the samba-cvs mailing list