Subject: Re: mkdir with trailing / (patch proposed)
To: Bill Studenmund <wrstuden@netbsd.org>
From: enami tsugutomo <enami@but-b.or.jp>
List: tech-kern
Date: 05/01/2002 08:20:41
> I'm asking as ufs copies the length (which does NOT include the trailing
> slash(es)), and uses memcpy() to compare only length worth of bytes. So
> the value of that extra byte doesn't matter. NOTHING SEEMS TO BE EXPECTING
> THIS TRAILING '\0'.

Ah, I guess I misread :-).  cn_nameptr need not to be NUL terminated
but d_name needs.

> Well, your patch looks just like mine except you chose a different name,
> and made different emulations able to turn it on too. :-)

And there is more place where copies up to NUL.

enami.