009f5d2f88
functions: the first checking if the operation is possible (regardless of permissions), the second checking file-system permissions, ACLs, etc. Mailing list reference: http://mail-index.netbsd.org/tech-kern/2009/06/21/msg005311.html