Check unlink on directory for all users, not just root.
authorCraig A. Berry <craigberry@mac.com>
Sun, 1 Dec 2013 23:16:47 +0000 (17:16 -0600)
committerCraig A. Berry <craigberry@mac.com>
Tue, 3 Dec 2013 04:45:36 +0000 (22:45 -0600)
commitf0d85c30acfcf77bee20b9f00a787e5b796dff9c
treea1a38c601d1b5119a6849b8666539b16add2a7dd
parent1dcae8b8dd1e2aa373ab045fee3d4f95d34f0b3c
Check unlink on directory for all users, not just root.

For cross-platform consistency, it makes more sense to reject
unlink attempts on directories in the same way for all users
rather than only for root.  geteuid() always returns zero on
Windows, never returns zero on VMS, and is a poor indicator
of privilege on modern unixen, so the code really hasn't been
working as intended on all platforms anyway.
doio.c
t/io/fs.t