getty: don't try to detect parity on local lines
authorDenis Vlasenko <vda.linux@googlemail.com>
Sat, 2 Feb 2008 19:05:36 +0000 (19:05 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sat, 2 Feb 2008 19:05:36 +0000 (19:05 -0000)
(Joakim Tjernlund <Joakim.Tjernlund at transmode.se>)

loginutils/getty.c

index 31230c9a57a1405ae0b17c11763c3d32c53242d2..f033b5afdf924df14cb392cb868d4713e4c7ee0e 100644 (file)
@@ -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) {