1
0
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:
Stefan Metzmacher 2011-03-18 16:45:08 +01:00
parent 3dc999e38b
commit f0ec69b535

View File

@ -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)))) {