[PATCH] wc hang

Denys Vlasenko vda.linux at googlemail.com
Wed Nov 18 10:46:47 UTC 2009


On Tue, Nov 17, 2009 at 7:50 PM, Dan Fandrich <dan at coneharvesters.com> wrote:
> I found that wc was always hanging when run (e.g.
> ./busybox_unstripped wc </dev/null).  It turns out that the new isprint
> replacement macro returns TRUE for isprint(EOF), so the read loop would
> never end. Moving the check for EOF first fixes it.

Applied, and added better isprint() logic too. Thanks!
--
vda


More information about the busybox mailing list