Re: possible buglet in 2.0.17 ext_2unlink()

Theodore Y. Ts'o (
Fri, 6 Sep 1996 18:23:25 -0400

Date: Fri, 06 Sep 1996 00:33:41 +0200
From: Arnt Gulbrandsen <>

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

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