Subject: Re: EISDIR for operations on "/"
To: None <firstname.lastname@example.org>
From: Christos Zoulas <email@example.com>
Date: 10/25/2005 13:15:49
In article <20051025020526.GB4916@spathi.chuq.com>,
Chuck Silvers <firstname.lastname@example.org> 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 :-)