diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-02 19:05:36 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-02 19:05:36 +0000 |
commit | 95dc67232606af071e59ede726bfab1d0ec72f7f (patch) | |
tree | 8a891a402338bdec958406e9bf20bfbce1144fbf | |
parent | 30eb3191030f2ceb7b596a2666abc8e455de220c (diff) | |
download | busybox-w32-95dc67232606af071e59ede726bfab1d0ec72f7f.tar.gz busybox-w32-95dc67232606af071e59ede726bfab1d0ec72f7f.tar.bz2 busybox-w32-95dc67232606af071e59ede726bfab1d0ec72f7f.zip |
getty: don't try to detect parity on local lines
(Joakim Tjernlund <Joakim.Tjernlund at transmode.se>)
-rw-r--r-- | loginutils/getty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c index 31230c9a5..f033b5afd 100644 --- a/loginutils/getty.c +++ b/loginutils/getty.c | |||
@@ -435,7 +435,7 @@ static char *get_logname(char *logname, unsigned size_logname, | |||
435 | 435 | ||
436 | /* Do parity bit handling. */ | 436 | /* Do parity bit handling. */ |
437 | ascval = c & 0177; | 437 | ascval = c & 0177; |
438 | if (c != ascval) { /* "parity" bit on ? */ | 438 | if (!(op->flags & F_LOCAL) && (c != ascval)) { /* "parity" bit on ? */ |
439 | bits = 1; | 439 | bits = 1; |
440 | mask = 1; | 440 | mask = 1; |
441 | while (mask & 0177) { | 441 | while (mask & 0177) { |