If an interactive set command fails, we currently reset the
configuration to the default and return success. This is probably
not what the user expected.
Make the command fail instead.
static int icom_set(char *line)
{
- int ret;
struct select_cmdline_parser_params params = {
.override = 1,
.initialize = 0,
fi = NULL;
free(admissible_uids);
admissible_uids = NULL;
- ret = parse_select_options(line, ¶ms, &admissible_uids, &fi);
- if (ret >= 0)
- return ret;
- return icom_reset(NULL);
+ return parse_select_options(line, ¶ms, &admissible_uids, &fi);
}
static int exec_interactive_command(char *line)