Peter Wemm 472fe5e4db Dont allow directories to be link()ed or unlink()ed, even for root
(returns EPERM always, the errno is specified by POSIX).

If you really have a desperate need to link or unlink a directory, you
can use fsdb. :-)

This should stop any chance of ftpd, rdist, "rm -rf", etc from
bugging out and damaging the filesystem structure or loosing races
with malicious users.

Reviewed by: davidg, bde
1996-05-24 16:19:23 +00:00
..
1996-05-02 14:21:14 +00:00
1996-05-07 23:19:49 +00:00
1996-05-08 19:31:48 +00:00
1996-05-02 14:21:14 +00:00
1996-05-02 14:21:14 +00:00