summaryrefslogtreecommitdiff
path: root/source4/ntvfs/ntvfs_generic.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-05-20 17:20:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:14 -0500
commit183fb2bd4b51fbf6d5660b84804b6f79bf9db36f (patch)
tree8c8b66fb5cf061d40575566bfbfbab82c0684c20 /source4/ntvfs/ntvfs_generic.c
parentc2c5f78f11e026d56f09a9142906d3921539204f (diff)
downloadsamba-183fb2bd4b51fbf6d5660b84804b6f79bf9db36f.tar.gz
r15754: - implement SMB2 Close
- add RAW_CLOSE_SMB2 generic mapping metze (This used to be commit 41bc3cfc822bfc2fe4413f93a180fc4507005282)
Diffstat (limited to 'source4/ntvfs/ntvfs_generic.c')
-rw-r--r--source4/ntvfs/ntvfs_generic.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/source4/ntvfs/ntvfs_generic.c b/source4/ntvfs/ntvfs_generic.c
index 8b80e9db803..89481e50386 100644
--- a/source4/ntvfs/ntvfs_generic.c
+++ b/source4/ntvfs/ntvfs_generic.c
@@ -1268,8 +1268,15 @@ _PUBLIC_ NTSTATUS ntvfs_map_close(struct ntvfs_module_context *ntvfs,
return NT_STATUS_INVALID_LEVEL;
case RAW_CLOSE_SPLCLOSE:
- cl2->close.level = RAW_CLOSE_CLOSE;
- cl2->close.in.file.ntvfs= cl->splclose.in.file.ntvfs;
+ cl2->generic.level = RAW_CLOSE_CLOSE;
+ cl2->generic.in.file.ntvfs = cl->splclose.in.file.ntvfs;
+ break;
+
+ case RAW_CLOSE_SMB2:
+ cl2->generic.level = RAW_CLOSE_CLOSE;
+ cl2->generic.in.file.ntvfs = cl->smb2.in.file.ntvfs;
+ /* SMB2 Close has output parameter, but we just zero them */
+ ZERO_STRUCT(cl->smb2.out);
break;
}