mirror of
https://github.com/troglobit/finit.git
synced 2026-10-26 12:14:37 +00:00
tty.c:tty_start() - Fix strcmp() foobar from f6f2895, must use strncmp()
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
f6f2895524
commit
3e29d883fa
1 file changed
+1
-1
@@ -138,7 +138,7 @@ void tty_start(finit_tty_t *tty)
|
||||
if (console && !strcmp(tty->name, console))
|
||||
is_console = 1;
|
||||
|
||||
if (!strcmp(tty->name, _PATH_DEV)) {
|
||||
if (!strncmp(tty->name, _PATH_DEV, strlen(_PATH_DEV))) {
|
||||
#if defined(GETTY_AGETTY)
|
||||
snprintf(line, sizeof(line), "%s %s %d %s", GETTY, tty->name, tty->baud, tty->term ?: "");
|
||||
#elif defined(GETTY_BUSYBOX)
|
||||
|
||||
Reference in new issue
Block a user