git-svn-id: https://klish.googlecode.com/svn/trunk@439 0eaa4687-2ee9-07dd-09d9-bcdd2d2dd5fb
@@ -421,7 +421,7 @@ bool_t clish_shell_execline(clish_shell_t *this, const char *line, char **out)
lub_string_free(prompt);
if (!str) {
switch (lerror) {
- case ENODATA:
+ case ENOENT:
this->state = SHELL_STATE_EOF;
break;
case EBADMSG:
@@ -726,7 +726,7 @@ static char *internal_readline(tinyrl_t * this,
/* time to finish the session */
this->done = BOOL_TRUE;
this->line = NULL;
- lerrno = ENODATA;
+ lerrno = ENOENT;
}
/* restores the terminal mode */
@@ -754,7 +754,7 @@ static char *internal_readline(tinyrl_t * this,
crlf = 0;