Fix sticky bit directory handling for deletions.
commitdae8d54f0708cf191cbb06ef6aa43cd570ceea90
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 2 May 2009 17:49:58 +0000 (2 10:49 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 2 May 2009 17:49:58 +0000 (2 10:49 -0700)
treef1196dba79209ed2a0788c47c62b348b5989551d
parentb6ab169f81330d7c66cbf350c6f2e5634137ec09
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