On Thursday 31 January 2008 10:33, Joakim Tjernlund wrote:
> 8 bit chars trigges the auto parity function which
> makes the serial port unreadable.
> ---
>  See http://busybox.net/lists/busybox/2008-January/029855.html
>  for some more info.
> 
>  loginutils/getty.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/loginutils/getty.c b/loginutils/getty.c
> index 31230c9..9c1a336 100644
> --- a/loginutils/getty.c
> +++ b/loginutils/getty.c
> @@ -435,7 +435,7 @@ static char *get_logname(char *logname, unsigned 
> size_logname,
>  
>                       /* Do parity bit handling. */
>                       ascval = c & 0177;
> -                     if (c != ascval) {       /* "parity" bit on ? */
> +                     if (!(op->flags & F_LOCAL) && (c != ascval)) { /* 
> "parity" bit on ? */
>                               bits = 1;
>                               mask = 1;
>                               while (mask & 0177) {

Applied, thanks.
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to