summaryrefslogtreecommitdiffstats
path: root/source3/smbd/smb2_create.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-10-28 15:31:46 -0700
committerJeremy Allison <jra@samba.org>2014-12-04 05:45:10 +0100
commit81a5a9e8971fad928e0a1a022e7cb841d8dbadf5 (patch)
treea6f500c156103b90345bbc8e33aab7151c9da3cf /source3/smbd/smb2_create.c
parentb72fca52defa1fd0f7d10f2811d86bbc7c661f50 (diff)
downloadsamba-81a5a9e8971fad928e0a1a022e7cb841d8dbadf5.tar.gz
samba-81a5a9e8971fad928e0a1a022e7cb841d8dbadf5.tar.xz
samba-81a5a9e8971fad928e0a1a022e7cb841d8dbadf5.zip
s3:smb2_create: allow durable handles with SMB2_LEASE_HANDLE
We don't support real lease yet, but this makes use of fsp_lease_type() which converts a batch oplock into and RWH lease. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/smbd/smb2_create.c')
-rw-r--r--source3/smbd/smb2_create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c
index 1e31cbf351..f006a96e17 100644
--- a/source3/smbd/smb2_create.c
+++ b/source3/smbd/smb2_create.c
@@ -998,7 +998,7 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
}
if (durable_requested &&
- BATCH_OPLOCK_TYPE(result->oplock_type))
+ (fsp_lease_type(result) & SMB2_LEASE_HANDLE))
{
status = SMB_VFS_DURABLE_COOKIE(result,
op,