s3:smb2_write: pass fsp->fnum to init_strict_lock_struct()
authorStefan Metzmacher <metze@samba.org>
Fri, 8 Jun 2012 09:19:00 +0000 (11:19 +0200)
committerKarolin Seeger <kseeger@samba.org>
Sun, 17 Jun 2012 19:01:00 +0000 (21:01 +0200)
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 <metze@samba.org>
Autobuild-Date(master): Sat Jun  9 18:50:32 CEST 2012 on sn-devel-104

Signed-off-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_write.c

index b2360caacec8dd63fd3c679b14c0174fe0d01a05..9014fa42a9ffda165ad7f63f94c95f66f47f3e70 100644 (file)
@@ -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,