From: Kirk McKusick Date: Thu, 14 Jul 1994 09:55:05 +0000 (-0800) Subject: update for 4.4BSD-Lite (from mycroft) X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/f3b6e5b377f6b9dd42c213fc58739fd41e4ab27d update for 4.4BSD-Lite (from mycroft) SCCS-vsn: sys/isofs/cd9660/cd9660_vnops.c 8.8 --- diff --git a/usr/src/sys/isofs/cd9660/cd9660_vnops.c b/usr/src/sys/isofs/cd9660/cd9660_vnops.c index 2483098b6b..e2e3eee9cc 100644 --- a/usr/src/sys/isofs/cd9660/cd9660_vnops.c +++ b/usr/src/sys/isofs/cd9660/cd9660_vnops.c @@ -9,7 +9,7 @@ * * %sccs.include.redist.c% * - * @(#)cd9660_vnops.c 8.7 (Berkeley) %G% + * @(#)cd9660_vnops.c 8.8 (Berkeley) %G% */ #include @@ -500,9 +500,14 @@ cd9660_readdir(ap) ip = VTOI(ap->a_vp); imp = ip->i_mnt; - MALLOC(idp,struct isoreaddir *,sizeof(*idp),M_TEMP,M_WAITOK); - idp->saveent.d_namlen = 0; - idp->assocent.d_namlen = 0; + MALLOC(idp, struct isoreaddir *, sizeof(*idp), M_TEMP, M_WAITOK); + idp->saveent.d_namlen = idp->assocent.d_namlen = 0; + /* + * XXX + * Is it worth trying to figure out the type? + */ + idp->saveent.d_type = idp->assocent.d_type = idp->current.d_type = + DT_UNKNOWN; idp->uio = uio; idp->eofflag = 1; idp->cookies = ap->a_cookies;