From: Stefan Metzmacher Date: Fri, 8 Jun 2012 09:19:00 +0000 (+0200) Subject: s3:smb2_write: pass fsp->fnum to init_strict_lock_struct() X-Git-Tag: samba-4.0.0beta2~260 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=72564052b60c2043f520721e45705c40a2381905;p=thirdparty%2Fsamba.git 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 --- 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,