smbd: Pass share_access/access_mask explicitly to grant_fsp_oplock_type()
authorVolker Lendecke <vl@samba.org>
Thu, 25 Jul 2019 14:08:35 +0000 (16:08 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 6 Aug 2019 21:49:29 +0000 (21:49 +0000)
commit71c6da46eee4acc245bd326865f84336f457f538
tree93d8103fcb06195b5a21c3741a0c72a6be218be7
parent41ab2b8ec5d398ef6187562c7620c359837f3899
smbd: Pass share_access/access_mask explicitly to grant_fsp_oplock_type()

Why? While restructuring open_file_ntcreate() I found the data flow for
these values confusing: grant_fsp_oplock_type() depends on
fsp->access_mask, which changes its value inside
open_file_ntcreate(). I find the data flow easier to follow if it
happens in explicit variables.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c