RWX on a file does not imply DELETE access
authorVolker Lendecke <vl@samba.org>
Tue, 17 Jun 2008 14:22:43 +0000 (16:22 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 19 Jun 2008 13:27:41 +0000 (15:27 +0200)
commit51b5364c2afb3a18df4bec2bc1624760ccc01676
tree0b039e746cfa96c05e03c5a8043c21d19066bbf0
parentdaa9b056645a45edfb3a70e3536011ebe5678970
RWX on a file does not imply DELETE access

Without this the changed checks in can_delete_file_in_directory give DELETE
access where there is none. So we can end up granting the ntcreate&x preparing
the unlink where we should not, which leads to a NT_STATUS_ACCESS_DENIED at
close time later, which in turn does *not* give the access denied error message
in the Windows GUI.

can_delete_file_in_directory will grant access now by looking at the directory
permissions.
source/smbd/posix_acls.c