git-svn-id: https://klish.googlecode.com/svn/trunk@574 0eaa4687-2ee9-07dd-09d9-bcdd2d2dd5fb
@@ -467,7 +467,7 @@ int clish_shell_execline(clish_shell_t *this, const char *line, char **out)
case ENOENT:
this->state = SHELL_STATE_EOF;
break;
- case EBADMSG:
+ case ENOEXEC:
this->state = SHELL_STATE_SYNTAX_ERROR;
default:
@@ -763,7 +763,7 @@ static char *internal_readline(tinyrl_t * this,
if (this->line && !this->handlers[KEY_LF](this, KEY_LF)) {
/* an issue has occured */
this->line = NULL;
- lerrno = EBADMSG;
+ lerrno = ENOEXEC;
}
if (str)
lub_string_free(tmp);