mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
s3:smbd: access checks should not depend on share mode flags
metze
This commit is contained in:
parent
3dc999e38b
commit
f0ec69b535
@ -3140,7 +3140,6 @@ static NTSTATUS create_file_unixpath(connection_struct *conn,
|
||||
|
||||
if (lp_acl_check_permissions(SNUM(conn))
|
||||
&& (create_disposition != FILE_CREATE)
|
||||
&& (share_access & FILE_SHARE_DELETE)
|
||||
&& (access_mask & DELETE_ACCESS)
|
||||
&& (!(can_delete_file_in_directory(conn, smb_fname) ||
|
||||
can_access_file_acl(conn, smb_fname, DELETE_ACCESS)))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user