summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-03-18 16:45:08 +0100
committerStefan Metzmacher <metze@samba.org>2011-03-21 22:35:19 +0100
commitf0ec69b53544b7ff702f94d58b3d64c33eaabc7a (patch)
tree3add92a3a1eb137143b0dbc3132a03988ad8a863
parent3dc999e38ba2605b702e60ac0b9e91a14542f458 (diff)
downloadsamba-f0ec69b53544b7ff702f94d58b3d64c33eaabc7a.tar.gz
samba-f0ec69b53544b7ff702f94d58b3d64c33eaabc7a.tar.bz2
samba-f0ec69b53544b7ff702f94d58b3d64c33eaabc7a.zip
s3:smbd: access checks should not depend on share mode flags
metze
-rw-r--r--source3/smbd/open.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index ca84f1f039..937117bee0 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -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)))) {