Subject: Re: wierd behaviour of mkdir(2)
To: Bert Driehuis <firstname.lastname@example.org>
From: Matthew Orgass <email@example.com>
Date: 10/19/2000 18:53:17
On Fri, 20 Oct 2000, Bert Driehuis wrote:
> On Thu, 19 Oct 2000, Matthew Orgass wrote:
> > POSIX allows trailing slashes to refer to a directory.
> Even if the directory doesn't exist yet? That is the core of the
> argument, which when the discussion died down a couple of years ago was
> entirely unresolved.
Yes. This was resolved when Greg Woods quoted from a draft version of
POSIX and someone else confirmed that the final standard contained the
same language. See:
> Problem is, it is dereferencing the directory, because "/foo/bar/" could
> be read as "/foo/bar/." (it is in NetBSD and BSD/OS anyway, and this
> implementation could not be disproved as Posixly correct at the time).
This is incorrect, just as treating multiple slashes in the path as /./
is incorrect; additional slashes refer to the directory and are the same
as one slash (or, in the case of a trailing directory, none). The only
exception is that the interpretation of exactly two beginning slashes is