TTY: If parsing speed argument fails, do NOT default to B38400

If the speed argument to the `tty` stanza is invalid we should not
default to some other random speed.  Instead, leave the line speed
as-is, like we do when starting an external getty.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2017-11-02 10:48:04 +01:00
parent 830abc1971
commit eb0a759371
+1 -3
View File
@@ -358,10 +358,8 @@ pid_t run_getty(char *tty, char *baud, char *term, int noclear, int nowait)
if (baud) {
speed = stty_parse_speed(baud);
if (B0 == speed) {
if (B0 == speed)
logit(LOG_CRIT, "TTY %s: Invalid speed %s", tty, baud);
speed = B38400;
}
}
prepare_tty(tty, speed, "finit-getty");