Re: [PATCH]Fix bug:rmdir could remove current working directory

From: Alexander Viro (
Date: Wed Oct 10 2001 - 17:09:08 EST

On Wed, 10 Oct 2001, Mingming cao wrote:
> I thought about the case when rmdir() on the cwd of other processes,
> but, as you said, that is implementation dependent. However rmdir() on
> "." does returns EBUSY error. Should not we keep the rmdir() behavior
> consistent: rmdir() on the current working directory of the current
> process is not OK?

We do. It's not just ".", "foo/bar/." is also prohibited. IOW, the
rule is "the last component of name should not be . or ..". Please,
look through archives - it had been beaten to death many times.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Oct 15 2001 - 21:00:35 EST