From b8a7cb6b937d9e954bb8ecf51a46c8eea4d8115c Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Fri, 1 Sep 2017 06:40:52 +0200 Subject: [PATCH] tty-register(): Fix regression in built-in TTY baud + term parser Signed-off-by: Joachim Nilsson --- src/tty.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tty.c b/src/tty.c index 5290b23d..19766939 100644 --- a/src/tty.c +++ b/src/tty.c @@ -115,7 +115,7 @@ void tty_sweep(void) * a leading '/dev' is encountered the remaining options must be in * the following sequence: * - * tty [!1-9,S] [BAUD[,BAUD,...]] [TERM] [noclear] [nowait] + * tty [!1-9,S] [BAUD[,BAUD,...]] [noclear] [nowait] [TERM] * * Otherwise the leading prefix must be the full path to an existing * getty implementation, with it's arguments following: @@ -176,7 +176,7 @@ int tty_register(char *line, struct timeval *mtime) /* Built-in getty args */ if (dev) { if (isdigit(args[i][0])) { - baud = tok; + baud = args[i]; continue; } @@ -185,7 +185,7 @@ int tty_register(char *line, struct timeval *mtime) * to be used for the TERM environment variable. */ if (i + 1 == num) - term = tok; + term = args[i]; } /* External getty, figure out the device */