libs/libc/builtin/: builtint_isavail() should not set the errno variable because this functions may be used by internal OS logic for which setting the rrno variable would be inappropriate.

This commit is contained in:
Gregory Nutt
2019-09-11 12:37:29 -06:00
parent d8adf712a2
commit 254a906409
7 changed files with 61 additions and 23 deletions
+1 -3
View File
@@ -123,11 +123,9 @@ static int builtin_loadbinary(struct binary_s *binp)
index = builtin_isavail(filename);
if (index < 0)
{
int errval = get_errno();
berr("ERROR: %s is not a builtin application\n", filename);
close(fd);
return -errval;
return index;
}
/* Return the load information. NOTE: that there is no way to configure