mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
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:
+1
-3
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user