Subject: Re: EISDIR for operations on "/"
To: None <tech-kern@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: tech-kern
Date: 10/25/2005 13:15:49
In article <20051025020526.GB4916@spathi.chuq.com>,
Chuck Silvers  <chuq@chuq.com> wrote:
>-=-=-=-=-=-
>
>hi,
>
>a while back christos added to the mkdir manpage that the error we return
>for mkdir("/") is EISDIR, which is what we do but not what we should do.
>the attached patch changes the errors we return for mkdir("/"), rmdir("/"),
>rename("/", ...) and rename(..., "/") to EEXIST, EBUSY and EBUSY and EBUSY
>respectively.  this matches linux, AIX and HP-UX and appears to be the
>closest match to what SUSv3 specifies.  solaris returns EINVAL in all of the
>EBUSY cases above, which is only supported by the spec in the rename("/", ...)
>case.
>
>any objections to this change?
>
>-Chuck

No objections at all from me :-)

christos