From eb0a759371488ec827dc6f3377272ca6ad00f80e Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Thu, 2 Nov 2017 10:48:04 +0100 Subject: [PATCH] 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 --- src/exec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/exec.c b/src/exec.c index 314fcc7f..0b93dc9c 100644 --- a/src/exec.c +++ b/src/exec.c @@ -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");