mirror of
https://github.com/troglobit/finit.git
synced 2026-10-31 13:00:32 +00:00
tty-register(): Fix regression in built-in TTY baud + term parser
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
529b39ebba
commit
b8a7cb6b93
1 file changed
+3
-3
@@ -115,7 +115,7 @@ void tty_sweep(void)
|
|||||||
* a leading '/dev' is encountered the remaining options must be in
|
* a leading '/dev' is encountered the remaining options must be in
|
||||||
* the following sequence:
|
* the following sequence:
|
||||||
*
|
*
|
||||||
* tty [!1-9,S] <DEV> [BAUD[,BAUD,...]] [TERM] [noclear] [nowait]
|
* tty [!1-9,S] <DEV> [BAUD[,BAUD,...]] [noclear] [nowait] [TERM]
|
||||||
*
|
*
|
||||||
* Otherwise the leading prefix must be the full path to an existing
|
* Otherwise the leading prefix must be the full path to an existing
|
||||||
* getty implementation, with it's arguments following:
|
* getty implementation, with it's arguments following:
|
||||||
@@ -176,7 +176,7 @@ int tty_register(char *line, struct timeval *mtime)
|
|||||||
/* Built-in getty args */
|
/* Built-in getty args */
|
||||||
if (dev) {
|
if (dev) {
|
||||||
if (isdigit(args[i][0])) {
|
if (isdigit(args[i][0])) {
|
||||||
baud = tok;
|
baud = args[i];
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -185,7 +185,7 @@ int tty_register(char *line, struct timeval *mtime)
|
|||||||
* to be used for the TERM environment variable.
|
* to be used for the TERM environment variable.
|
||||||
*/
|
*/
|
||||||
if (i + 1 == num)
|
if (i + 1 == num)
|
||||||
term = tok;
|
term = args[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* External getty, figure out the device */
|
/* External getty, figure out the device */
|
||||||
|
|||||||
Reference in new issue
Block a user