diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-05-01 12:59:57 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-05-01 12:59:57 -0700 |
commit | 0b88ee29ff1d174fa54d3e462fb0ebc890da3bf4 (patch) | |
tree | d16d02acf2b20f78d87de6264998fec9c12e0c32 | |
parent | 416b8375ffde990c1ec443be0961b9ada38da75b (diff) | |
download | bluez-0b88ee29ff1d174fa54d3e462fb0ebc890da3bf4.tar.gz |
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.
-rw-r--r-- | src/shared/shell.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |