summaryrefslogtreecommitdiff
path: root/StdLib/LibC/Uefi/Devices
diff options
context:
space:
mode:
authordarylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524>2011-10-03 18:54:12 +0000
committerdarylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524>2011-10-03 18:54:12 +0000
commit41b152c5f6ec3a5a6e51b4f8f0f90291a5895edc (patch)
treedb28131d5929a4805654a802b64cc0d980b9559e /StdLib/LibC/Uefi/Devices
parent58081f2c64fbc2f89ac5a9b47b2643c280bc8f99 (diff)
downloadedk2-platforms-41b152c5f6ec3a5a6e51b4f8f0f90291a5895edc.tar.xz
StdLib: Improve robustness of stat() and make basename() a public function.
AppPkg: Refinements to pyconfig.h and port of getpath.c to EDK II. Signed-off-by: darylm503 Reviewed-by: geekboy15a Reviewed-by: jljusten git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12508 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'StdLib/LibC/Uefi/Devices')
-rw-r--r--StdLib/LibC/Uefi/Devices/UefiShell/daShell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/StdLib/LibC/Uefi/Devices/UefiShell/daShell.c b/StdLib/LibC/Uefi/Devices/UefiShell/daShell.c
index d0abb8dd5b..de14ef31c5 100644
--- a/StdLib/LibC/Uefi/Devices/UefiShell/daShell.c
+++ b/StdLib/LibC/Uefi/Devices/UefiShell/daShell.c
@@ -304,14 +304,14 @@ da_ShellStat(
}
else {
Status = RETURN_DEVICE_ERROR;
+ errno = EIO;
}
- errno = EFI2errno(Status);
EFIerrno = Status;
if(FileInfo != NULL) {
FreePool(FileInfo); // Release the buffer allocated by the GetInfo function
}
- return errno? -1 : 0;
+ return (Status == RETURN_SUCCESS)? 0 : -1;
}
static