Re: `rmdir .` doesn't work in 2.4

From: Alexander Viro (viro@math.psu.edu)
Date: Mon Jan 08 2001 - 13:04:24 EST


On Mon, 8 Jan 2001, Andrea Arcangeli wrote:

> in userspace, but I think the old behaviour was more flexible (it was also
> showing how much our dcache is powerful) and I still don't see why it's been
> removed. Maybe it was to remove a branch from a fast path? (if so I don't
> think it was a good idea, there are many more overhead things that matters more
> and that aren't even visible to userspace)

Racy. Nonportable. Has portable and simple equivalent. Again, don't
bother with chdir at all - if you know the name of directory even
../name will work. It's not about the current directory. It's about
the invalid last component of the name.

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



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