Fix checks in can_delete_file_in_directory()
authorVolker Lendecke <vl@samba.org>
Thu, 19 Jun 2008 12:53:46 +0000 (14:53 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 19 Jun 2008 13:27:41 +0000 (15:27 +0200)
commitdaa9b056645a45edfb3a70e3536011ebe5678970
treec5d8891ccf0c3f3a70481aac136c1e13aae8da91
parentabe1bed665ad8d1dbf9177dcbb9344b25df9594c
Fix checks in can_delete_file_in_directory()

With at least NFSv4 ACLs around the write permission for the owner is a bogus
check if we can delete a file in a directory. Like in Windows, there are two
ways which can grant us such: First, the DELETE permission on the file itself,
or if that does not help, the DELETE_CHILD permission on the directory. It
might be a bit more code that runs, but essentially we should end up with the
same set of syscalls in the non-acl case.
source/smbd/file_access.c