Re: [BUG] Inconsistent behaviour of rmdir

From: David Feuer (David_Feuer@brown.edu)
Date: Thu Nov 16 2000 - 16:17:31 EST


At 07:51 PM 11/16/2000 +0100, you wrote:
>Now I see your point : by "." or "foo/." you mean the directory itself,
>while "foo" or "foo/" refer to the link to the directory, and they are
>obviously different objects... at least since hard links on directories
>were introduced. Fine.

. and foo/. are also links, not directories... the directories themselves
are filesystem internal objects, and not discussed by the standard. I
didn't know that linux supported hard links to directories... Isn't that
just asking for trouble?

> > Besides, we clearly violated
> > all relevant standards - rmdir() and rename() are required to fail
> > if the last component of name happens to "." or "..".
>
>By standard, do you imply 'de facto' ? Or does any source clearly state
>this ?

It rarely hurts to violate even a written standard when it says something
like this... If it says something like this (which can only happen
intentionally, afaict) should fail, but you can do something intelligent
instead, you probably should.

--
This message has been brought to you by the letter alpha and the number pi.
Open Source: Think locally, act globally.
David Feuer
David_Feuer@brown.edu

- 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 : Thu Nov 23 2000 - 21:00:11 EST