Fix bug #6297 - owner of sticky directory cannot delete files created by
authorJeremy Allison <jra@samba.org>
Fri, 12 Jun 2009 13:41:20 +0000 (15:41 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 17 Jun 2009 13:11:36 +0000 (15:11 +0200)
commit05ca5677073d15bba02a9595b75dc7e86580d367
tree5296ed2a46595cc2aea032d9e87dc048322861d4
parentd9e03e8cc55106abdbff3b74317a1f7d9f3f8cca
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.
(cherry picked from commit cea3a63a86a733a16c3e91f5a78e972be802eb5c)
source3/smbd/file_access.c