From 72564052b60c2043f520721e45705c40a2381905 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 --- 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 0b502a4f48b..a149cb84dd3 100644 --- a/source3/smbd/smb2_write.c +++ b/source3/smbd/smb2_write.c @@ -341,7 +341,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.11.4.GIT