[PATCH] Getty: Don't do auto parity in local mode(-L).

Joakim Tjernlund Joakim.Tjernlund at transmode.se
Thu Jan 31 02:33:58 PST 2008


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) {
-- 
1.5.3.8



More information about the busybox mailing list