Skip to content

Commit

Permalink
Update exception code for "file not found" error
Browse files Browse the repository at this point in the history
Used by the ACPICA applications.
  • Loading branch information
acpibob committed Aug 27, 2015
1 parent 0f343f0 commit ac1564c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/components/utilities/utfileio.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
#include "accommon.h"
#include "actables.h"
#include "acapps.h"
#include "errno.h"

#ifdef ACPI_ASL_COMPILER
#include "aslcompiler.h"
Expand Down Expand Up @@ -402,6 +403,12 @@ AcpiUtReadTableFromFile (
if (!File)
{
perror ("Could not open input file");

if (errno == ENOENT)
{
return (AE_NOT_EXIST);
}

return (Status);
}

Expand Down

0 comments on commit ac1564c

Please sign in to comment.