Fix sticky bit directory handling for deletions.
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 2 May 2009 17:49:58 +0000 (10:49 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 4 May 2009 06:22:12 +0000 (23:22 -0700)
commit5dedb299e639500966e4bb5d104da3bc5f3960ab
treee28818353d511d7fbf4c829061adec2efdfab849
parente1b4bb122782281c31efd0cdb5e41b94af947ccb
Fix sticky bit directory handling for deletions.

Properly check the sticky bit and disallow deletions if set on a directory
and the user doing the deletion does not own the directory or the file.

This check is now being done by the kernel layer, VFSs do not need to do
this check any more.

Reported-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
sys/kern/vfs_nlookup.c
sys/sys/nlookup.h