Fix bug #6297 - owner of sticky directory cannot delete files created by others.
authorJeremy Allison <jra@samba.org>
Thu, 11 Jun 2009 19:51:45 +0000 (12:51 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 11 Jun 2009 19:51:45 +0000 (12:51 -0700)
commit5cef57ff7d899773a084d23838b7f18a83f6e79d
tree0ee2d37f23d7fed1677b28b879c0f62c34c7ee6d
parentef55c2bd91181d896e0a4d05b72e9da8bfb7b915
Fix bug #6297 - owner of sticky directory cannot delete files created by others.
The reason we couldn't delete was we were erroring out early
if requestor was not the owner of the file we wanted to delete,
instead of checking if the requestor owned the directory as well.
If either of these is true, we must go on and check the ACL.
Karolin, this is a must for 3.4.0 and also 3.3.next. I'll update
the bug report with patches for 3.4.0 and 3.3.next and ask vl
to review.
Jeremy.
source3/smbd/file_access.c