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
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user