From 8666ad87ba6dc87be130b70ee667235d042176e5 Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 18 Aug 2000 17:38:33 +0000 Subject: [PATCH] Fix read problem on directories on UFS. --- sys/compat/ibcs2/ibcs2_misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/compat/ibcs2/ibcs2_misc.c b/sys/compat/ibcs2/ibcs2_misc.c index afc5331ce7a3..47e5150c4220 100644 --- a/sys/compat/ibcs2/ibcs2_misc.c +++ b/sys/compat/ibcs2/ibcs2_misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: ibcs2_misc.c,v 1.49 2000/08/11 22:19:29 matt Exp $ */ +/* $NetBSD: ibcs2_misc.c,v 1.50 2000/08/18 17:38:33 matt Exp $ */ /* * Copyright (c) 1994, 1995, 1998 Scott Bartram @@ -543,7 +543,7 @@ again: inp = buf; outp = SCARG(uap, buf); resid = SCARG(uap, nbytes); - if (eofflag || (len = buflen - auio.uio_resid) == 0) + if ((len = buflen - auio.uio_resid) == 0) goto eof; for (cookie = cookiebuf; len > 0 && resid > 0; len -= reclen) { bdp = (struct dirent *)inp;