diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-06-08 11:19:00 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-06-09 15:02:47 +0200 |
commit | 4ae96bb952be47a5043d9906da57a9482e12c21d (patch) | |
tree | 0fa0116659118ac31a41df07a802b1c0ca5410bc /source3 | |
parent | 3b2e5929eca008dd6ad2f6ab5436eeb55ab69607 (diff) | |
download | samba-4ae96bb952be47a5043d9906da57a9482e12c21d.tar.gz samba-4ae96bb952be47a5043d9906da57a9482e12c21d.tar.bz2 samba-4ae96bb952be47a5043d9906da57a9482e12c21d.zip |
s3:smb2_lock: use fsp->fnum as locking context
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
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/smb2_lock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_lock.c b/source3/smbd/smb2_lock.c index e4e0cac8b1..c86bcfedd3 100644 --- a/source3/smbd/smb2_lock.c +++ b/source3/smbd/smb2_lock.c @@ -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; |