Fix a bug in the linux emulator's getdents_common() function. The function
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 3 Jun 2006 08:06:31 +0000 (08:06 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 3 Jun 2006 08:06:31 +0000 (08:06 +0000)
commitb1c5843ab02ca44e6976b25ca25b9f94722b00b6
tree86b2ddcad81f1810657b5bd0484ac1f91ef49cca
parent6add3d707582250a86616055588c94feaea4783d
Fix a bug in the linux emulator's getdents_common() function.  The function
was looping without checking for the directory EOF, leading to a situation
where an infinite loop could occur.

Reported-by: Rumko <rumcic@gmail.com>, YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
sys/emulation/linux/linux_file.c