Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Mar 2009 11:00:04 GMT
From:      dfilter@FreeBSD.ORG (dfilter service)
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/132620: commit references a PR
Message-ID:  <200903201100.n2KB04Cg078871@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/132620; it has been noted by GNATS.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/132620: commit references a PR
Date: Fri, 20 Mar 2009 10:59:20 +0000 (UTC)

 Author: kib
 Date: Fri Mar 20 10:59:06 2009
 New Revision: 190142
 URL: http://svn.freebsd.org/changeset/base/190142
 
 Log:
   The nc_nlen member of the struct namecache contains the length of the cached
   name, not the length + 1.
   
   PR:	132620, 132542
   Reported by:	bf2006a yahoo com
   Tested by:	bf2006a, pho
   Reviewed by:	marcus
 
 Modified:
   head/sys/kern/vfs_cache.c
 
 Modified: head/sys/kern/vfs_cache.c
 ==============================================================================
 --- head/sys/kern/vfs_cache.c	Fri Mar 20 10:47:16 2009	(r190141)
 +++ head/sys/kern/vfs_cache.c	Fri Mar 20 10:59:06 2009	(r190142)
 @@ -997,7 +997,7 @@ vn_fullpath1(struct thread *td, struct v
  		ncp = TAILQ_FIRST(&vp->v_cache_dst);
  		if (ncp != NULL) {
  			MPASS(vp->v_dd == NULL || ncp->nc_dvp == vp->v_dd);
 -			buflen -= ncp->nc_nlen - 1;
 +			buflen -= ncp->nc_nlen;
  			for (i = ncp->nc_nlen - 1; i >= 0 && bp != buf; i--)
  				*--bp = ncp->nc_name[i];
  			if (bp == buf) {
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903201100.n2KB04Cg078871>