Subject: Re: kern/15397: regress/sys/fs/mkdir fails
To: Christos Zoulas <email@example.com>
From: Jason R Thorpe <firstname.lastname@example.org>
Date: 01/27/2002 15:33:13
On Sun, Jan 27, 2002 at 11:17:08PM +0000, Christos Zoulas wrote:
> > Run test in regress/sys/fs/mkdir.
> So that I understand how far this is going to go...
> will open("foo/", O_CREAT, 0666); create a plain file? Or will
> stat("foo/", &st); work after that?
Read the regression test. In particular:
* IEEE 1003.1 second ed. 18.104.22.168:
* If the pathname refers to a directory, it may also have
* one or more trailing slashes. Multiple successive slashes
* are considered to be the same as one slash.
Since the pathname argument to mkdir(2) and rmdir(2) refer to a directory,
trailing /s must be allowed.
-- Jason R. Thorpe <email@example.com>