Subject: Re: Linux emulation and mkdir with trailing /
To: Matthew Orgass <darkstar@pgh.net>
From: Bill Studenmund <wrstuden@zembu.com>
List: tech-kern
Date: 09/25/2000 12:58:03
On Mon, 25 Sep 2000, Matthew Orgass wrote:

> 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.

That would work. My only comment would be the name's kinda long. :-)

Take care,

Bill