So, the manual page is wrong. Linux returns the EPERM error in
this case. And this conforms to Posix.1.
[ In my copy of Posix.1-1988, section 5.5.1.4 contains:
[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.]
Remy