[PATCH] Getty: Don't do auto parity in local mode(-L).
Denis Vlasenko
vda.linux at googlemail.com
Sat Feb 2 19:03:01 UTC 2008
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
More information about the busybox
mailing list