Subject: Re: Linux emulation and mkdir with trailing /
To: Bill Sommerfeld <>
From: Todd Vierling <>
List: tech-kern
Date: 09/23/2000 17:42:53
On Sat, 23 Sep 2000, Bill Sommerfeld wrote:

: If linux allows mkdir("/tmp/foo/") to succeed, then our emulation
: needs to, as well.

Yes.  Additionally, the SVR4 emulation needs to be audited for this same
characteristic -- and we may need to test the same with rmdir.

The change needed is pretty simple; after copyin() of the path, chop
trailing slashes before passing to the emul-lookup routine and the rest of
the code.

-- Todd Vierling <>  *
-- Speed, stability, security, and support.  Wasabi NetBSD:  Run with it.