Subject: Re: EISDIR for operations on "/"
To: None <email@example.com>
From: Christos Zoulas <firstname.lastname@example.org>
Date: 10/25/2005 13:15:49
In article <20051025020526.GB4916@spathi.chuq.com>,
Chuck Silvers <email@example.com> wrote:
>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("/", ...)
>any objections to this change?
No objections at all from me :-)