Re: rmdir of one's pwd (was Re: rmdir of a busy directory)

Martin Tessun (martin.tessun@class.de)
Mon, 15 Feb 1999 09:07:48 +0100


> Just tested on SunOS 5.5.1:
>
> $ mkdir xx
> $ cd xx
> $ rmdir .
> rmdir: directory ".": Can't remove current directory or ..
> $ rmdir ../xx
> $ ls -a
> $ ls ../xx
> ../xx: No such file or directory

Haeh??

godzilla% mkdir x
godzilla% cd x
godzilla% rmdir ../x
rmdir: directory "../x": Can't remove current directory or ..
godzilla% uname -sr
SunOS 5.5.1

Other example:

godzilla% cd /tmp
godzilla% mkdir x
godzilla% cd x
godzilla% rmdir /tmp/x
rmdir: directory "/tmp/x": Can't remove current directory or ..
godzilla% uname -sr
SunOS 5.5.1

So Solaris checks the current working directory for EINVAL. I don't know
how you've succeded.

Bye
Martin

-
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/