lkml.org 
[lkml]   [1999]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: rmdir of one's pwd
    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/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.312 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site