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

Andrea Arcangeli
2001-01-08T20:30:55Z

On Mon, Jan 08, 2001 at 01:04:24PM -0500, Alexander Viro wrote:
> 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.

The last component of the name isn't invalid, it's a plain valid directory. If
according to you `rmdir ../name` and rmdir `pwd` makes sense then according to
me `rmdir .` makes perfect sense too.

Andrea