[uClibc]buglet in `tinylogin' with new uClibc stdio

Erik Andersen andersen at codepoet.org
Wed Mar 13 07:54:53 UTC 2002


On Wed Mar 13, 2002 at 04:29:27PM +0900, Miles Bader wrote:
> When I telnet to my board, which uses apps compiled with the new uClibc
> stdio, I can login succesfully, but /etc/motd (which is output by
> tinylogin before execing the shell) is truncated:
[---------snip----------]
> So it seems that the problem is that stdio isn't flushed.  Here's a
> patch that fixes the problem (for the uClinux-dev people):

Patch is obviously correct.  Applied (to tinylogin).

> However, I wonder why this didn't happen with the old stdio....

Guess you just got lucky.

> Was it not buffered, or did it default to line buffering?  Is this a
> potential compatibility problem?

The old stdio was also buffering.  Regardless, the new behavior
is correct and seems to do a better job at showing bugs...  I'll
take obviously broken over silently broken any day.

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list