fopen_internal: return ENOENT on file not found
This is actually expected by open(2), but I do not expect the BIOS implementation to conform.
This commit is contained in:
parent
9157d1d6e6
commit
9c6112eb5b
|
@ -177,6 +177,7 @@ static FILE *fopen_internal(const char *path, const char *mode, FILE *f)
|
||||||
|
|
||||||
if(fd == -1)
|
if(fd == -1)
|
||||||
{
|
{
|
||||||
|
errno = ENOENT;
|
||||||
if(s!=NULL)free(s);
|
if(s!=NULL)free(s);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue