From 0b88ee29ff1d174fa54d3e462fb0ebc890da3bf4 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 1 May 2023 12:59:57 -0700 Subject: shared/shell: Fix not releasing prompt This fixes not releasing prompt when queueing a line to be executed since it can be considered as user input if the init script is attempting to enter it as response to prompt input. --- src/shared/shell.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/shared/shell.c b/src/shared/shell.c index 8b8b253d0..757e16199 100644 --- a/src/shared/shell.c +++ b/src/shared/shell.c @@ -1295,6 +1295,9 @@ static int bt_shell_queue_exec(char *line) /* Queue if already executing */ if (data.line) { + /* Check if prompt is being held then release using the line */ + if (!bt_shell_release_prompt(line)) + return 0; queue_push_tail(data.queue, strdup(line)); return 0; } -- cgit v1.2.1