Re: unlink system call on directories - Bug + fix

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sun, 17 Nov 1996 13:07:30 +0000 (GMT)


> The manual page says that unlink() returns EISDIR when the pathname
> refers to a directory. But the kernel returns EPERM for minix and
> derivatives ext,ext2 etc., see the file namei.c in those directories.
>
> The fix for these is trivial (if I understand correctly how the kernel
> handles the unlink command) and left as an exercise to the reader.

The fix is trivial, edit the manual page. It is wrong the kernel is right