From 46d293d03a895d82bfbf2b6b0c6af797acc39d0e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 8 Jun 2012 11:19:00 +0200 Subject: [PATCH] s3:smb2_write: pass fsp->fnum to init_strict_lock_struct() fsp->fnum is the same as in_file_id_volatile. When we start to support durable handles we should pass in_file_id_persistent. metze Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Sat Jun 9 18:50:32 CEST 2012 on sn-devel-104 Signed-off-by: Jeremy Allison --- source3/smbd/smb2_write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/smb2_write.c b/source3/smbd/smb2_write.c index b2360caacec..9014fa42a9f 100644 --- a/source3/smbd/smb2_write.c +++ b/source3/smbd/smb2_write.c @@ -321,7 +321,7 @@ static struct tevent_req *smbd_smb2_write_send(TALLOC_CTX *mem_ctx, /* Fallback to synchronous. */ init_strict_lock_struct(fsp, - in_file_id_volatile, + fsp->fnum, in_offset, in_data.length, WRITE_LOCK, -- 2.34.1