PERFORCE change 125152 for review
Marko Zec
zec at FreeBSD.org
Tue Aug 14 13:34:46 PDT 2007
http://perforce.freebsd.org/chv.cgi?CH=125152
Change 125152 by zec at 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);
More information about the p4-projects
mailing list