From: Alex Hornung Date: Thu, 3 Sep 2009 09:33:22 +0000 (+0100) Subject: linuxemu - fix typo X-Git-Tag: v2.4.0~88^2~3 X-Git-Url: http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/745218031721ef45a2714133cced693087a21376 linuxemu - fix typo * Commit e54488bbec5c9f80e95cedd395b0e3d31fde253d introduced a typo in linux_file breaking anything using linux getdents stuff. This also fixes issue 1471 and brings linuxulator back into working condition. Dragonfly-bug: http://bugs.dragonflybsd.org/issue1471 Reported-By: ftigeot --- diff --git a/sys/emulation/linux/linux_file.c b/sys/emulation/linux/linux_file.c index c665e0b..b4402f7 100644 --- a/sys/emulation/linux/linux_file.c +++ b/sys/emulation/linux/linux_file.c @@ -327,7 +327,7 @@ again: inp = buf; outp = (caddr_t)args->dirent; resid = nbytes; - if (auio.uio_resid >= buflen); + if (auio.uio_resid >= buflen) goto eof; len = buflen - auio.uio_resid; cookiep = cookies;