Subject: Re: Linux emulation and mkdir with trailing /
To: Todd Vierling <tv@wasabisystems.com>
From: Warner Losh <imp@village.org>
List: tech-kern
Date: 09/23/2000 15:41:19
In message <Pine.NEB.4.21.0009231741210.12634-100000@server.int.duh.org> Todd Vierling writes:
: 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.

FreeBSD succeeds with mkdir /tmp/foo/.  So does NetBSD -current from
the second week in august.

Warner