Re: possible buglet in 2.0.17 ext_2unlink()

Theodore Y. Ts'o (tytso@mit.edu)
Fri, 6 Sep 1996 18:23:25 -0400


Date: Fri, 06 Sep 1996 00:33:41 +0200
From: Arnt Gulbrandsen <agulbra@troll.no>

ext2_unlink() seems to return EPERM if one attempts to unlink() a
directory.

This seems a bit wrong, would not EISDIR be a better value? I know
that root can sometimes unlink() directories, but even so I think
EISDIR is better for non-root users.

POSIX.1 mandates that the error be EPERM if "the implementation
prohibits using unlink() on directories".

- Ted