s3:smb2_lock: use fsp->fnum as locking context
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 13:02:47 +0000 (15:02 +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

source3/smbd/smb2_lock.c

index e4e0cac8b12ccb7980bde906561cffdb93d09b79..c86bcfedd3218d557583c09091d7caa94cca66d2 100644 (file)
@@ -335,7 +335,7 @@ static struct tevent_req *smbd_smb2_lock_send(TALLOC_CTX *mem_ctx,
                        return tevent_req_post(req, ev);
                }
 
-               locks[i].smblctx = in_file_id_volatile;
+               locks[i].smblctx = fsp->fnum;
                locks[i].offset = in_locks[i].offset;
                locks[i].count  = in_locks[i].length;