Date: Tue, 14 Aug 2007 20:34:45 GMT From: Marko Zec <zec@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 125152 for review Message-ID: <200708142034.l7EKYjqG089174@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=125152 Change 125152 by zec@zec_tpx32 on 2007/08/14 20:34:19 When substituting the "@" sign with vimage name, correctly compute the number of characters that need to be copied. Affected files ... .. //depot/projects/vimage/src/sys/kern/vfs_lookup.c#7 edit Differences ... ==== //depot/projects/vimage/src/sys/kern/vfs_lookup.c#7 (text+ko) ==== @@ -311,13 +311,13 @@ break; } bcopy(sp + 1, sp + vnamelen, - vnamelen - (sp - cp)); + linklen - (sp - cp)); bcopy(td->td_ucred->cr_vimage->vi_name, sp, vnamelen); linklen += (vnamelen - 1); } } -#endif /* IMUNES_SYMLINK_HACK */ +#endif if (linklen + ndp->ni_pathlen >= MAXPATHLEN) { if (ndp->ni_pathlen > 1) uma_zfree(namei_zone, cp);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708142034.l7EKYjqG089174>