- /*
- * Determine if we're looking for a resource fork
- * note: this could cause a read off the end of the
- * component name buffer in some rare cases.
- */
- if ((flags & ISLASTCN) == 0 &&
- bcmp(&cnp->cn_nameptr[cnp->cn_namelen],
- _PATH_RSRCFORKSPEC, sizeof(_PATH_RSRCFORKSPEC) - 1) == 0) {
- flags |= ISLASTCN;
- cnp->cn_consume = sizeof(_PATH_RSRCFORKSPEC) - 1;
- wantrsrc = 1;
- }