Re: unlink system call on directories - Bug + fix

Alan Cox (
Tue, 19 Nov 1996 18:59:01 +0000 (GMT)

> The same filesystem, exported from SunOS 4.1.1, mounted on SunOS 4.1.4
> does not allow directories to be unlinked. So I conclude that the
> server is not wrong. The Linux kernel should know that the file is a
> directory and not even try to unlink it since it knows it is not
> allowed.

Very simply - incorrect.

All authentication in NFS is done by the server. The fact Sun NFS client
checks it is if anything a bug in their NFS client since another NFS
implementation is free to allow unlink of directories.

If you can also dump stuff into lost+found on 4.1.4 then report it to Sun,
if you can't them upgrade your prehistoric 4.1.1 box and see if it sorts
it out.