From 0d77585a4197783ab8b0f8cb854eddd1e9b7941b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 8 Jun 2012 11:19:00 +0200 Subject: [PATCH] s3:smb2_read: 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 --- source3/smbd/smb2_read.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/smbd/smb2_read.c b/source3/smbd/smb2_read.c index d69ead9a75f..abaf4c66c21 100644 --- a/source3/smbd/smb2_read.c +++ b/source3/smbd/smb2_read.c @@ -255,7 +255,7 @@ static int smb2_sendfile_send_data(struct smbd_smb2_read_state *state) } init_strict_lock_struct(fsp, - state->in_file_id_volatile, + fsp->fnum, in_offset, in_length, READ_LOCK, @@ -497,7 +497,7 @@ static struct tevent_req *smbd_smb2_read_send(TALLOC_CTX *mem_ctx, /* Fallback to synchronous. */ init_strict_lock_struct(fsp, - in_file_id_volatile, + fsp->fnum, in_offset, in_length, READ_LOCK, -- 2.11.4.GIT