Subject: Re: EISDIR for operations on "/"
To: None <>
From: Christos Zoulas <>
List: tech-kern
Date: 10/25/2005 13:15:49
In article <>,
Chuck Silvers  <> 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 :-)