Subject: Re: kern/15397: regress/sys/fs/mkdir fails
To: Christos Zoulas <>
From: Jason R Thorpe <>
List: netbsd-bugs
Date: 01/27/2002 15:33:13
On Sun, Jan 27, 2002 at 11:17:08PM +0000, Christos Zoulas wrote:

 > >>How-To-Repeat:
 > >	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.
         *      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 <>