Re: `rmdir .` doesn't work in 2.4

Stephen C. Tweedie
2001-01-09T13:53:54Z

Hi,

On Tue, Jan 09, 2001 at 01:01:25AM +0100, Andrea Arcangeli wrote:
> On Mon, Jan 08, 2001 at 03:27:21PM -0800, Linus Torvalds wrote:
> > However, it is against all UNIX standards, and Linux-2.4 will explicitly
>
> I may be missing something but apparently SuSv2 allows it, you can check here:
>
> http://www.opengroup.org/onlinepubs/007908799/xsh/rmdir.html
>
> Infact SuSv2 doesn't even allow rmdir to return -EINVAL.

SuS always allows implementations to return other errors than the ones
listed:

Implementations will not generate a different error number from the
ones described here for error conditions described in this
specification, but may generate additional errors unless explicitly
disallowed for a particular function.

See http://www.opengroup.org/onlinepubs/007908799/xsh/errors.html

--Stephen