]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
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)
committerStefan Metzmacher <metze@samba.org>
Sat, 9 Jun 2012 16:50:32 +0000 (18:50 +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

source3/smbd/smb2_write.c

index 0b502a4f48b2d8e00fb4b7dc8faa272239d4594b..a149cb84dd39aef263a1aecb03835095f0c33517 100644 (file)
@@ -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,