[BusyBox] bug#1127: minor buglet in ls.c w/ serial console

Erik Andersen andersen at lineo.com
Fri Mar 9 22:29:32 UTC 2001


On Thu Mar 08, 2001 at 08:35:14PM -0800, Denton Gentry wrote:
> Package: busybox
> Version: 0.49
> Severity: normal
> 
>   There is a minor buglet in ls.c if BB_FEATURE_AUTOWIDTH is
> defined. The variable terminal_width is uninitialized, and
> expects to be set by either the -w argument or by the TIOCGWINSZ
> ioctl issued in ls_main. If the system is using a serial console
> TIOCGWINSZ will set win.ws_row = win.ws_col = 0 because it hasn't
> a clue how big the terminal is. This leads to a divide by zero error
> in showfiles().

This bug has been fixed in CVS.  So you should be in
good shape when we cut the 0.50 release in the next 
few days (perhaps even today if everything tests out),

 -Erik

--
Erik B. Andersen   email:  andersen at lineo.com
--This message was written using 73% post-consumer electrons--





More information about the busybox mailing list