Subject: Re: Linux emulation and mkdir with trailing /
To: Bill Studenmund <>
From: Matthew Orgass <>
List: tech-kern
Date: 09/25/2000 15:32:06
On Mon, 25 Sep 2000, Bill Studenmund wrote:

> I think the code to change is:
> which is around line 465 of sys/kern/vfs_lookup.c. If we made it:

  I think this should be more general, so that emulation of OSes that
allow trailing slashes on all names can use the same flag.  If you add

	if (cp->cn_flags & ALLOWENDSLASHES)
		cnp->cn_flags &= ~REQUIREDIR;

at about line 392 inside the 'if (*cp == '\0')', then both cases will be
solved with one flag.

Matthew Orgass