Suprisingly, POSIX-2008 mandates unlink() have to return "[EPERM]" on directory, not "[EPERM] or [EISDIR]".

[EPERM]
The file named by path is a directory, and either the calling process does not have appropriate privileges, or the implementation prohibits using unlink() on directories.

http://www.opengroup.org/onlinepubs/9699919799/functions/unlink.html



--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to