[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [PATCH] Getty: Don't do auto parity in local mode(-L).
From: Joakim Tjernlund <Joakim.Tjernlund () transmode ! se>
Date: 2008-01-31 10:33:58
Message-ID: 1201775638-22055-1-git-send-email-Joakim.Tjernlund () transmode ! se
[Download RAW message or body]
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
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic