Fix bug #6297 - owner of sticky directory cannot delete files created by others....
commit3206b944145929bfeb1fe92ea1231560b78dfa3d
authorJeremy Allison <jra@samba.org>
Fri, 12 Jun 2009 13:41:20 +0000 (12 15:41 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 15 Jun 2009 12:23:54 +0000 (15 14:23 +0200)
tree27e2da31c4f7b889797c05ad1d39342796fe3aed
parent8fdc5ec90c59f3c4df1a9d37e05e133fc51b80b3
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 966a51da8998cfd15875ba047b7f765c84b914dd)
source/smbd/file_access.c