Re: cvs commit: src/sys/kern vfs_cache.c

I fixed a couple more bugs in your code. You were copying 'buflen' bytes
start at 'bp', which means your copy was exceeding the size of the source
buffer. And you needed to do the uap->buflen checks *before* calling
malloc().
I also rearranged the code a bit so kern_getcwd() does not have to do
the bcopy() at all. Instead it simply returning the 'bp' pointer. This
will improve __getcwd()'s performance over the last set of commits so it
is roughly on-par with what it was before the syscall separation.
-Matt