From 745218031721ef45a2714133cced693087a21376 Mon Sep 17 00:00:00 2001 From: Alex Hornung Date: Thu, 3 Sep 2009 10:33:22 +0100 Subject: [PATCH] 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 --- sys/emulation/linux/linux_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/emulation/linux/linux_file.c b/sys/emulation/linux/linux_file.c index c665e0bb22..b4402f70c9 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; -- 2.41.0