mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
smbd: fix sharing access check for directories
This was missing from commit 6140c3177a
and causes
all opens of directories to be handled as stat opens, bypassing the sharemode
check.
Not adding a test at this time, as my (hopefully) soon to be merged Directory
Leases branch has a test which actually detected this problem.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15732
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 20206a335a6af71b99f6441df145feea6563cf5a)
This commit is contained in:
parent
3572ffa6c5
commit
6bcccb5c7b
@ -5096,6 +5096,7 @@ static NTSTATUS open_directory(connection_struct *conn,
|
|||||||
.req = req,
|
.req = req,
|
||||||
.create_disposition = create_disposition,
|
.create_disposition = create_disposition,
|
||||||
.access_mask = access_mask,
|
.access_mask = access_mask,
|
||||||
|
.open_access_mask = access_mask,
|
||||||
.share_access = share_access,
|
.share_access = share_access,
|
||||||
.oplock_request = NO_OPLOCK,
|
.oplock_request = NO_OPLOCK,
|
||||||
.lease = NULL,
|
.lease = NULL,
|
||||||
|
Loading…
Reference in New Issue
Block a user