Re: rmdir of one's pwd

Andries.Brouwer@cwi.nl
Mon, 15 Feb 1999 16:14:12 +0100 (MET)


From viro@math.psu.edu Mon Feb 15 15:47:53 1999

rename(): could you comment on Linux rename(2) manpage? Quote:

EEXIST The new pathname contained a path prefix of the
old.

EINVAL An attempt was made to make a directory a subdi=AD
rectory of itself.

How do those cases differ?

Now that you point me to this page, I changed the text into

ENOTEMPTY or EEXIST
newpath is a non-empty directory, i.e., contains
entries other than "." and "..".

EINVAL The new pathname contained a path prefix of the
old, or, more generally, an attempt was made to
make a directory a subdirectory of itself.

(The second part of this description is required to cover
cases involving symbolic links.)

Thanks!

Andries

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/