ZFS allows deletion of files in a sticky directory

Alexander Zagrebin alexz at visp.ru
Fri Feb 19 23:23:31 UTC 2010


I have found that directory entry may be deleted from a ZFS directory
with the sticky bit, if "the entry is a plain file and you have write
access"
(this is citation from a comments in zfs_dir.c)
But this behavior isn't described in the sticky(8) and isn't allowed on a
UFS.
The attached patch provides the UFS-like behavior of a sticky directories on
a ZFS.
Is this bug or feature?

-- 
Alexander Zagrebin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-zfs_dir.c
Type: application/octet-stream
Size: 906 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20100219/87e47051/patch-zfs_dir.obj


More information about the freebsd-current mailing list